Resize-fill exceeds max. supported dimensions
Posted: 2019-06-10T03:01:53-07:00
I have an image with 1800x1 dimensions.
When I call
it returns this message:
At the same time it uses 1.84GB of RAM for a couple seconds.
I guess that it attempts to make it wider by multiplying both height and width by 200 (desired width), and ends up with 360000x200 image, which is obviously too large. Probably this is a bug because resulting image is expected to fill the desired area, and it doesn't have to produce such a large image during this process.
When I call
Code: Select all
convert ~/img.jpg -resize "300x200^" ~/processed.img
Code: Select all
Maximum supported image dimension is 65500 pixels `/home/user/processed.img' @ error/jpeg.c/JPEGErrorHandler/340
I guess that it attempts to make it wider by multiplying both height and width by 200 (desired width), and ends up with 360000x200 image, which is obviously too large. Probably this is a bug because resulting image is expected to fill the desired area, and it doesn't have to produce such a large image during this process.