Page 1 of 1

Imagemagick fails to load large images

Posted: 2019-05-11T00:04:33-07:00
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.

Re: Imagemagick fails to load large images

Posted: 2019-05-11T05:32:28-07:00
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.