[Image-SIG] PATCH: Group 4 TIFF compression support
by Vladimir Pastukhov other posts by this author
Jul 29 2003 3:32PM messages near this date
Re: [Image-SIG] PIL: Can't open saved BMP image
|
[Image-SIG] PATCH: Group 4 TIFF compression support
Hello,
Enclosed patch for PIL 1.1.4 enables reading files encoded with
group3, group4, tiff_ccitt and tiff_raw_16 TIFF compression schemes.
Internally it uses libtiff (www.libtiff.org) for decompression.
The following additional steps are required to build PIL with
libtiff:
1. Install libtiff library version 3.5.7.
2. For PIL compilation you will need a full set of libtiff
include files, whereas only a subset of them gets installed.
Get the libtiff source and run configure to prepare headers
in libtiff subdirectory.
3. Adjust paths to libtiff header files and library in setup.py
and libImaging/Makefile.
4. Define HAVE_LIBTIFF in libImaging/ImConfig.h
The code has been tested so far only with a limited set of
group4-encoded images. Feedback and bug reports are welcome.
Best regards,
--
Vladimir Pastukhov <vpastukhov@[...].ru>
Attachments:
Imaging-1.1.4-libtiff.patch
unknown2
|