2006.03.13 16:35 "[Tiff] CCITT Group 4 images", by Philip Watkinson

2006.03.13 16:19 "Re: [Tiff] CCITT Group 4 images", by Joris Van Damme

Philip,

I have CCITT Group 4 compressed images that are not contained within TIFF files. Can I use Libtiff to decompress the images?

It is possible, but it is not easy.

You can redefine the LibTiff IO routines. Thus, you can make 'm such that they 'read' a fake valid TIFF file header, a fake valid TIFF IFD, and your real CCITT group 4 data, all combined into a valid TIFF. LibTiff's output then is the decompressed data.

Similar techniques are used in the tiff2pdf contribution.

Joris Van Damme
info@awaresystems.be
http://www.awaresystems.be/
Download your free TIFF tag viewer for windows here:
http://www.awaresystems.be/imaging/tiff/astifftagviewer.html