[Image-SIG] python PIL 16-bit tiff files

Dan Blacker dan.blacker at googlemail.com
Sat Apr 10 18:08:06 CEST 2010


Hello, I wonder if anyone can help with this problem:

I am trying to open 16-bit tif files with the Python Imaging Library, with
this code:

im0 = Image.open (incolor)

I get this error:

Traceback (most recent call last):
  File "find.frame.py", line 137, in <module>
    im0 = Image.open (incolor)
  File "/usr/lib/python2.6/dist-packages/PIL/Image.py", line 1917, in open
    raise IOError("cannot identify image file")
IOError: cannot identify image file

My code works fine with 8bit tiffs. Attatched is an example image file that
it won't read in.

Any help would be greatly appreciated
Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20100410/cdef2c34/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 16_bit_example.tif
Type: image/tiff
Size: 644728 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/image-sig/attachments/20100410/cdef2c34/attachment-0001.tif>


More information about the Image-SIG mailing list