[magick-users] streaming on bilevel tif files
duc.sequere.aut.de.via.decede at imagemagick.org
duc.sequere.aut.de.via.decede at imagemagick.org
Fri Mar 20 13:11:34 PDT 2009
> I would like to append several (20 for examples) big bilevel tif files
> (48000 x 2000 for example) in a final huge bilevel tif file.
Probably convert is best while caching pixels to disk to conserve memory.
It will be slow but dependable:
convert -limit area 1mb *.tif new.tif
If you want to append to a single image:
convert -limit area 1mb *.tif -append new.tif
Stream is only useful if you want to extract a small area from a huge image.
Support you have a 100000x100000 TIFF image but you only want to extract a
2048x2048 area from the image, use the stream program. With convert you
can do something similar. Assume you want the top half of each 10000x10000
pixel image:
convert -limit area 1mb '*.tif[10000x5000]' new.tif
Instead of reading the entire image sequence, it reads one TIFF image at
a time, extracts the top half and moves to the next image.
ImageMagick is not very effient with 1 bit images. You might get some speed-up
if you use the Q8 version of ImageMagick. The default build is Q16, or
16-bits per pixel.
More information about the Magick-users
mailing list