Large Multi-page TIFF struggles
Posted: 2013-09-16T12:57:30-07:00
Hi everyone,
I'm hoping for some collective wisdom here on a problem I'm having with ImageMagick (6.5.7-0 , Q16) and creation of large multi-page TIFF files.
I want to create a large multi-page TIFF from several single-page TIFFs from a scanner. I have a large number (~400) of images. For the sake of argument, lets assume these are all 8.5x11, at a pixel size of 2500x3300 (which is my "worst case", as each image should be no larger than a standard letter-sized page, although some are smaller). This gives me ~25 GB for storage size for my pixel cache.
However, when I try to run the convert command, the job dies, and I get an out of disk space error, and find imagemagick has used > 33 GB of space in the /tmp (there's a limit on /tmp of 40 GB and 7 GB were used at the time). The convert command that I'm using, is " convert -quiet -compress group4 x1.tif x2.tif x3.tif ... "
What's going on here? Am I missing something, or is Imagemagick eating up way more space than it should be ? Should I be trying to use the -stream method for this purpose instead? (Does stream even support doing this, esp. with compression?)
Thanks in advance!
Edit: updated the size of the pixel cache calculation and images to match problem scenario.
I'm hoping for some collective wisdom here on a problem I'm having with ImageMagick (6.5.7-0 , Q16) and creation of large multi-page TIFF files.
I want to create a large multi-page TIFF from several single-page TIFFs from a scanner. I have a large number (~400) of images. For the sake of argument, lets assume these are all 8.5x11, at a pixel size of 2500x3300 (which is my "worst case", as each image should be no larger than a standard letter-sized page, although some are smaller). This gives me ~25 GB for storage size for my pixel cache.
However, when I try to run the convert command, the job dies, and I get an out of disk space error, and find imagemagick has used > 33 GB of space in the /tmp (there's a limit on /tmp of 40 GB and 7 GB were used at the time). The convert command that I'm using, is " convert -quiet -compress group4 x1.tif x2.tif x3.tif ... "
What's going on here? Am I missing something, or is Imagemagick eating up way more space than it should be ? Should I be trying to use the -stream method for this purpose instead? (Does stream even support doing this, esp. with compression?)
Thanks in advance!
Edit: updated the size of the pixel cache calculation and images to match problem scenario.