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

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
long.to
Posts: 7
Joined: 2018-11-01T19:31:14-07:00
Authentication code: 1152

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

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post 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.
Post Reply