Hello all,

I'm unable to get PIL (Image.open) to load certain TIFF files generated
by another application (using libtiff).

According to imageMagick the files are the same type:

mask.tif TIFF 640x480 640x480+0+0 DirectClass 8-bit 900.383kb
store-00000.tif[1] TIFF 640x480 640x480+0+0 DirectClass 8-bit 1.17202mb

mask.tif loads fine:

>>> image = Image.open("mask.tif")
>>>

but store-00000.tif fails:

>>> image = Image.open("store-00000.tif")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/PIL/Image.py", line 1917, in open
    raise IOError("cannot identify image file")
IOError: cannot identify image file
>>>

I'm running PIL 1.1.6-3 in python 2.5 on ubuntu hardy.

You can grab these two files from:

http://www.ekran.org/ben/tmp/mask.tif
http://www.ekran.org/ben/tmp/store-00000.tif

This is a problem because it is files created by this very application I
need to be able to read with PIL. Converting them is not practical
because there will be at least 900 images and processing time is an issue.

Thanks,
B. Bogart
_______________________________________________
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to