Bug in geometry parsing for -resize?
Posted: 2011-12-06T23:05:36-07:00
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
which works fine. The natural command for what they're trying to do is
but that gives
The similar operation for changing the width but keeping height constant is
Code: Select all
mogrify -resize '100!' image.png
Code: Select all
mogrify -resize 'x100!' image.png
Is this a bug in the geometry parsing/resizing?mogrify: negative or zero image size `image.png' @ error/resize.c/ResizeImage/2570