possible bug equal size crop with @ IM 6.7.1.0 Q16

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 equal size crop with @ IM 6.7.1.0 Q16

Post by fmw42 »

IM 6.7.1.0 Q16 Mac OSX Tiger

I am getting an error message when trying to do equal size crop regions. (http://www.imagemagick.org/Usage/crop/#crop_equal)


convert rose: -crop '20x20@' +repage rose_%d.png
convert: geometry does not contain image `ROSE' @ warning/transform.c/CropImage/622.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible bug equal size crop with @ IM 6.7.1.0 Q16

Post by magick »

We can reproduce the problem you posted and have a fix in ImageMagick-6.7.1-1 Beta available by sometime tomorrow. Thanks.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible bug equal size crop with @ IM 6.7.1.0 Q16

Post by fmw42 »

This does not seem to be fixed in IM 6.7.1.1 Q16 Mac OSX Tiger:


convert -size 40x40 xc:red -crop 20x20@ +repage red_%d.png


should produce 4 images, but I get 360 images

Am I doing something wrong with my command?



Likewise:


convert rose: -crop '20x20@' +repage rose_%d.png


produces 379 images.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible bug equal size crop with @ IM 6.7.1.0 Q16

Post by magick »

We'll have a patch by sometime tomorrow. In the meantime read http://www.imagemagick.org/Usage/crop/#crop_equal. Its possible Anthony changed the semantics of the area crop. You want -crop 2x2@ to produce 4 images.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible bug equal size crop with @ IM 6.7.1.0 Q16

Post by fmw42 »

magick wrote:We'll have a patch by sometime tomorrow. In the meantime read http://www.imagemagick.org/Usage/crop/#crop_equal. Its possible Anthony changed the semantics of the area crop. You want -crop 2x2@ to produce 4 images.

You are correct. My mistake on the syntax. :oops:

So there is no error currently in IM 6.7.1.1.
Post Reply