[Pythonmac-SIG] Converting TIFFs to something else - finally!

Dinu Gherman gherman at darwin.in-berlin.de
Wed Sep 24 06:13:34 EDT 2003


Hi,

since nobody else seems to feel enough of the pain I've just looked
more deeply into what I can get out of NSBitmapRep and hacked that
into a little tool that uses PIL to convert such TIFFs into "some-
thing" else. It's crude, it's short, it's a hack, but it seems to
work for my files.

If you have a better name than tiff2sth.py - let me know! And for
those who want to be a "format detective" for a change: maybe you
want to run the following, check the difference and let the PIL
world know ;-)

   python tiff2sth.py test.tiff test.tif

Since it's so small, I'm attaching a simple tarball containing the
script and a small sample TIFF file.

Have fun,

Dinu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tiff2sth.tar.gz
Type: application/x-gzip
Size: 2937 bytes
Desc: not available
Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20030924/a732263a/tiff2sth.tar.gz
-------------- next part --------------


--
Dinu C. Gherman
......................................................................
"The first principle is that you must not fool yourself - and you are
the easiest person to fool." (Richard Feynman)


More information about the Pythonmac-SIG mailing list