Page 1 of 1

Tiled Pyramidal TIFF with multiple compression

Posted: 2010-07-20T12:39:37-07:00
by sbarex
Hi,
is it possible to generate a pyramidal tiff where the higher resolution level is compressed with LZW and the next levels are compressed with jpeg?
Thank you very much
Simon

Re: Tiled Pyramidal TIFF with multiple compression

Posted: 2010-07-20T13:29:00-07:00
by fmw42
sbarex wrote:Hi,
is it possible to generate a pyramidal tiff where the higher resolution level is compressed with LZW and the next levels are compressed with jpeg?
Thank you very much
Simon

I am not an expert on tiff or pyramidal tiff. I know you can create pyramidal tiffs in IM. However, I doubt, you can switch compressions within the tiff pyramid. The best info on tiffs in IM is at http://www.imagemagick.org/Usage/formats/#tiff, but it does not mention pyramids, unless I have missed that.

Also from

convert -list format

one gets


PTIF* TIFF rw+ Pyramid encoded TIFF

So it is read/write. I believe that you have to write it out as PTIF:image.tif

Somewhere I think I have seen some notes about the pyramid parameters, but cannot recall now. You might search the archives. One set of notes is at viewtopic.php?f=3&t=12723&p=42377&hilit ... tif#p42377 regarding tiling the pyramid.

I think IM relies upon libtif, so you may want to explore that to see if you can split the compressions. If it cannot be done there, then IM cannot do it either.