AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2007.06.27 06:55 "[Tiff] Fw: Patch: TIFF Group 3/4 decoder support for PIL 1.1.6", by Renier Morales Rodríguez
2007.06.27 14:21 "Re: [Tiff] Fw: Patch: TIFF Group 3/4 decoder support for PIL 1.1.6", by Frank Warmerdam
2007.06.28 07:18 "Re: [Tiff] Fw: Patch: TIFF Group 3/4 decoder support for PIL 1.1.6", by Renier Morales Rodríguez

2007.06.28 07:18 "Re: [Tiff] Fw: Patch: TIFF Group 3/4 decoder support for PIL 1.1.6", by Renier Morales Rodríguez

On Wed, 27 Jun 2007 10:21:34 -0400, Frank Warmerdam <warmerdam@pobox.com> wrote:

If PIL wants to use the G3/G4 code from libtiff I'd suggest instead
that the code just be copied and adapted for the purpose. I've done
this successfully for another g3/g4 format in my GDAL library.

Hmm. Going to need some pointers and understand a lot more about TIFF than a wanted.

I think I've found the relevant code in tif_fax3.c (Fax4Decode). I saw the the decoding uses a pointer to the tif struct, but it seems that the only legal way to get a tif struct pointer is with TIFFOpen. Problem is, in PIL, I get the bytes of the file, not the path to it, AFAICT.

You still think its possible to adapt the libtiff G3/G4 decoder if I only have the bytes of the tif image? If so, then that means I don't need concern myself with those STATE macros?

--Renier