Bug in geometry parsing for -resize?

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
andrew-grio
Posts: 1
Joined: 2011-12-06T23:02:07-07:00
Authentication code: 8675308

Bug in geometry parsing for -resize?

Post by andrew-grio »

This StackOverflow question: http://stackoverflow.com/q/8396869 has someone trying to distort an image by changing its height while keeping the width the same as the original image's.

The similar operation for changing the width but keeping height constant is

Code: Select all

mogrify -resize '100!' image.png
which works fine. The natural command for what they're trying to do is

Code: Select all

mogrify -resize 'x100!' image.png
but that gives
mogrify: negative or zero image size `image.png' @ error/resize.c/ResizeImage/2570
Is this a bug in the geometry parsing/resizing?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Bug in geometry parsing for -resize?

Post by magick »

We can reproduce the problem you posted and have a patch. Look for it in ImageMagick-6.7.4-0 Beta by sometime tomorrow. Thanks.
Post Reply