Page 1 of 1

Does that new version of IM limit the size of TIFF image?

Posted: 2018-12-25T04:41:22-07:00
by long.to
Hi,
I'm trying to upgrade the version of IM CLI from 7.0.7-24 to 7.0.8-18 in Windows, but got an error with a TIFF image.
With 7.0.7-24, the image can convert successful without error.
With 7.0.8-18, the image got an error:
convert.exe: MemoryAllocationFailed `D:\28df992e625049b0be5990382a3961e2.tiff' @ error/tiff.c/ReadTIFFImage/1794.
convert.exe: NoImagesDefined `D:\out.tiff' @ error/convert.c/ConvertImageCommand/3300.
The sample code is just:

Code: Select all

convert.exe input_file.tiff output_file.tiff
Maybe IM limitted the size of TIFF image after extracting, because raw size of attached TIFF is big.
My question is: How to by pass the error and keep converting the attached files from TIFF to TIFF with new version?
My sample file is: https://drive.google.com/file/d/1fIyeE- ... sL7L8/view

Re: Does that new version of IM limit the size of TIFF image?

Posted: 2018-12-25T11:49:30-07:00
by fmw42
Adjust your memory and dimensions in your policy.xml file. See https://imagemagick.org/script/resources.php

Code: Select all

magick -list resource
should tell you what you have currently

Re: Does that new version of IM limit the size of TIFF image?

Posted: 2018-12-25T12:40:44-07:00
by magick
Try this command:

Code: Select all

convert.exe -limit memory 2MiB -limit map 2MiB input_file.tiff output_file.tiff
See https://imagemagick.org/script/architec ... tera-pixel. Its possible the conversion may still fail because the TIFF delegate library is attempting to allocate large amounts of memory on the heap-- something ImageMagick has no control over.