[Image-SIG] ANN: pytiff 0.1.3
Bob Klimek
klimek at grc.nasa.gov
Mon Aug 30 16:42:52 CEST 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!
>
>
Nice and simple! But there's no mention of what the pixel depth is. Can
it read 16-bit grayscale and 48-bit RGB TIFF images?
Bob
More information about the Image-SIG
mailing list