Imagemagick fails to load large images

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
MattBas
Posts: 1
Joined: 2019-05-10T23:52:23-07:00
Authentication code: 1152

Imagemagick fails to load large images

Post by MattBas »

I've noticed convert fails to load some large images.

Here's an example, both images were exported as PNG with GIMP, the only difference is the small one has been scaled down before exporting it:

Code: Select all

$ convert -version
Version: ImageMagick 6.9.10-8 Q16 x86_64 20180723 https://www.imagemagick.org
Copyright: © 1999-2018 ImageMagick Studio LLC
License: https://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP 
Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff wmf x xml zlib
$ convert large_10180x13600.png out.png
convert-im6.q16: no images defined `out.png' @ error/convert.c/ConvertImageCommand/3258.
$ # The above fails with exit code 1
$ convert small_1018x1360.png out.png
$ # This works fine, out.png is created as it should
I can load the image no problem with other software so it isn't an issue with memory running out.
The error message is also a bit weird because it's caused by the input image but the message references the output image.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Imagemagick fails to load large images

Post by magick »

Try your command with the latest ImageMagick release 6.9.10-45. If it still fails, post a link to large_10180x13600.png so we can try to reproduce the issue. ImageMagick can handle mega-pixel sized images so the behavior you posted is unexpected.
Post Reply