Uncompressing TIFF files directly in Python

Fredrik Lundh fredrik at pythonware.com
Wed Jan 18 11:34:52 EST 2006


"sophie_newbie" wrote:

> I mainly just need it to work with windows and assumed that an os call
> would only work with windows!
>
> I've downloaded that free image software and the ctypes program, it
> seems to be working but I haven't yet worked out how to get it to
> decompress a G4 TIFF image...
>
> If anyone knows it would be of help?

tiffcp and friends are available for windows too:

    http://gnuwin32.sourceforge.net/packages/tiff.htm

    infile = "somefile.tif"

    os.system("tiffcp -c none %s temp.tif" % infile)

    im = Image.open("temp.tif")

</F>






More information about the Python-list mailing list