[Image-SIG] ANN: pytiff 0.1.3

JinDong (JD) Chen jchen at parc.com
Mon Aug 30 20:03:18 CEST 2004


Hi, Oliver,

Can pytiff handles G4 compression?

Thanks

JD

At 06:49 AM 08/30/2004, Oliver M. Haynold wrote:
>Hello:
>
>I have written pytiff, a little library to read and write TIFF files with
>python. Pytiff also provides some simple filters. It is independent of
>PIL, but the two can interoperate easily. Here is a simple program that
>crops all pages of a TIFF file to 200 * 200:
>
>import pytiff
>reader=pytiff.TiffReader('source.tif')
>writer=pytiff.TiffWriter('dest.tif')
>for page in reader:
>    writer.append(pytiff.CropFilter(page, (0,0), (200, 200)))
>
>Very Pythonic, isn't it? Pytiff is licensed under the GPL and available
>for download at
><URL:http://pubweb.northwestern.edu/~omh221/software_projects/pytiff/>.
>Have fun!
>
>      Oliver
>--
>For an email address I check more regularly, see
><URL:http://pubweb.northwestern.edu/~omh221/>.
>
>_______________________________________________
>Image-SIG maillist  -  Image-SIG at python.org
>http://mail.python.org/mailman/listinfo/image-sig




More information about the Image-SIG mailing list