Can't create multipage TIFS with thousands of pages

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
Monobot
Posts: 3
Joined: 2016-11-01T10:25:15-07:00
Authentication code: 1151

Can't create multipage TIFS with thousands of pages

Post by Monobot »

Hi, I am using ImageMagick to convert 5000 single page TIFFs to 1 multipage TIFF using -adjoin. I have set the temp files to go to a drive with nearly 200 GB free space, using -define registry:temporary-path=(path). The issue is, that once the temp files hits a certain number, the temp files themselves seem to disappear before all of the temp files for the 5000 pages has been created. The resulting multipage TIF ends up missing many hundreds of pages. I have played with various settings like -limit file, -limit memory, -limit map, and others, but this has not helped. In some cases it has made it worse.
This only happens with files that are over about 3500 pages. My convert command works fine for files under that page count. Are there other settings to try to convert these files, or is there an actual limit to the number of pages in a multipage TIF that I can create using ImageMagick?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Can't create multipage TIFS with thousands of pages

Post by fmw42 »

What is your IM version and platform? Have you checked to see that you have no limits on the directory that you are using for the temporary-path? Does your platform limit the number of files in a directory?
Monobot
Posts: 3
Joined: 2016-11-01T10:25:15-07:00
Authentication code: 1151

Re: Can't create multipage TIFS with thousands of pages

Post by Monobot »

ImageMagick-6.8.3-10-Q16-x86-dll; Windows Server 2008 R2 Enterprise. I have folders with tens of thousands of files. So, I don't think it's an issue with the windows limit of files in a folder.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Can't create multipage TIFS with thousands of pages

Post by fmw42 »

Do you have MAGICK_TIME_LIMIT set?
Monobot
Posts: 3
Joined: 2016-11-01T10:25:15-07:00
Authentication code: 1151

Re: Can't create multipage TIFS with thousands of pages

Post by Monobot »

Ha! I just downloaded the latest version of ImageMagick, and it worked. Thank you for asking me what version I was using; made me think I should grab the latest version. FYI, I had not touched the MAGICK_TIME_LIMIT; but when I ran "identify -list resource" in CMD, it showed: time: unlimited. Thank you so much for responding to my questions.
Post Reply