Tiff conversion memory hog

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
rubinsta

Tiff conversion memory hog

Post by rubinsta »

Hi

I'm trying to convert a large number of tiffs into a single pdf file. There are about ~300 tiffs at 80KB each. I'm using the command:

Code: Select all

$ convert *.tif one_file.pdf 
The process chews up all the computer's memory (2Gs!). Are there better, more efficient ways to accomplish this task other than a simple convert command?

I'm using IM 6.4.2 Q16 on Mac OS 10.5.

Thanks!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Tiff conversion memory hog

Post by magick »

Try this command:
  • convert -limit area 1mb *.tif one_file.pdf
Its slow but it will not hog your machine memory or processor.
rubinsta

Re: Tiff conversion memory hog

Post by rubinsta »

Thanks for your quick response!

"-limit area 1mb" writes most of the process to disk cache? I tried it and it used less memory but not enough to make my computer usable while the command was processing.

I guess I'll write a loop to process to convert each tiff file to a pdf and then combine.

Thanks again!
Post Reply