Tiled Pyramidal TIFF with multiple compression

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
sbarex

Tiled Pyramidal TIFF with multiple compression

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Tiled Pyramidal TIFF with multiple compression

Post 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.
Post Reply