python PIL 16-bit tiff files

Dan Blacker <[email protected]>
Newsgroups gmane.comp.python.image
Message-ID <[email protected]>
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

_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig
16_bit_example.tif (image/tiff, 629.6 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.