Page 1 of 1

Bug in geometry parsing for -resize?

Posted: 2011-12-06T23:05:36-07:00
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?

Re: Bug in geometry parsing for -resize?

Posted: 2011-12-07T06:00:19-07:00
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.