[Pythonmac-SIG] Does PIL handle OS X TIFFs?

Dinu Gherman gherman at darwin.in-berlin.de
Tue Sep 16 19:32:00 EDT 2003


Hi,

has anybody succeeded here in using PIL for loading TIFFs generated
on OS X, e.g. stuff created like this?

   img = NSImage...
   tiffData = img.TIFFRepresentation()
   tiffData.writeToFile_atomically_(path, YES)

I'm using PIL 1.1.4, but get errors like the following:

   >>> import Image
   >>> tiff = Image.open("test.tiff")
   Traceback (most recent call last):
     File "<stdin>", line 1, in ?
     File "/usr/lib/python2.2/site-packages/PIL/Image.py", line 1571, in 
open
       raise IOError("cannot identify image file")
   IOError: cannot identify image file

Thanks,

Dinu

--
Dinu C. Gherman
......................................................................
"He who can read but does not read good books has no advantage over
the ones who can't read." (Mark Twain)




More information about the Pythonmac-SIG mailing list