Combine many large tiffs to one pdf (or ps) file
Posted: 2009-03-16T13:20:06-07:00
I'm trying to combine many (100s) of large (10MB+) tiff files into one pdf or ps file but every attempt results in failure due to overuse of system resources (I suspect). The command I'm running is (in a perl script):
convert -compress JPEG -adjoin @formatted_files $dir_name/$pdf_file
where "@formatted_files" is a list of all the files to be converted, "$dir_name" is the directory for output (this perl script would ideally batch process many directories), and "$pdf_file" is the pdf file to be written.
This works on directories containg lesser numbers of images with smaller file sizes, but any moderately sized input inevitably results in failure. I've tried using the "limit memory" and "limit map" options with no success. Maybe I'm using those incorrectly. Does anyone have an idea of a workaround for this problem? Thanks for all your help!
System - RedHat 4, 6 Gb mem, 4x Intel Xeon 3.2 GHz processors
convert -compress JPEG -adjoin @formatted_files $dir_name/$pdf_file
where "@formatted_files" is a list of all the files to be converted, "$dir_name" is the directory for output (this perl script would ideally batch process many directories), and "$pdf_file" is the pdf file to be written.
This works on directories containg lesser numbers of images with smaller file sizes, but any moderately sized input inevitably results in failure. I've tried using the "limit memory" and "limit map" options with no success. Maybe I'm using those incorrectly. Does anyone have an idea of a workaround for this problem? Thanks for all your help!
System - RedHat 4, 6 Gb mem, 4x Intel Xeon 3.2 GHz processors