[Image-SIG] how can I open 32 float tiff with PIL?

Ding Wei raul1st2002 at gmail.com
Tue Apr 5 04:57:53 CEST 2011


Hi there guys,

I'm new to the Python and PIL. I want to open a 32 float tiff file with pil.
But I always get a error like this:

raise IOError("cannot identify image file")
IOError: cannot identify image file

I tried two different method to do the open:

1.
import Image
im = Image.open(’test.tif‘)

2.
import Image
fp = open(’test.tif‘, ’rb’)
im = Image.open(fp)

8 bit RGB file works just fine, but neither 16bit or 32 bit can be opened.

Did I do something wrong?

Thank you for your help!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20110404/f4265361/attachment.html>


More information about the Image-SIG mailing list