possible bug -trim and %@ IM 6.9.0.1 Q16 Mac OSX Snow Leopard

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

possible bug -trim and %@ IM 6.9.0.1 Q16 Mac OSX Snow Leopard

Post by fmw42 »

I am not sure why this produces zero width for -trim, rather than keeping width=1. Perhaps IM processes each side in progression. If so, that would explain why it reduces to 0 width. But then I would have expected height=0 also.


convert -size 1x20 xc:black xc:white xc:black -append tmp.gif
dim=`convert tmp.gif -format "%@" info:`
convert: geometry does not contain image `' @ warning/attribute.c/GetImageBoundingBox/247.

echo "$dim"
0x39+0+20
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible bug -trim and %@ IM 6.9.0.1 Q16 Mac OSX Snow Leopard

Post by magick »

We can reproduce the problem you posted and have a patch in ImageMagick 6.9.0-2 Beta, available by sometime tomorrow. Thanks.
Post Reply