[Image-SIG] Re: cannot identify .psd image
Fredrik Lundh
fredrik at pythonware.com
Thu Nov 11 17:39:23 CET 2004
Terry Kerr wrote:
> I have just upgraded our application from python2.1.3/PIL 1.1.2 to python2.3.4/PIL 1.1.4 on linux,
> and discovered a problem with particular PSD files.
>
> Image.open('product2327_image.psd')
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/local/lib/python2.3/site-packages/PIL/Image.py", line 1571, in open
> raise IOError("cannot identify image file")
> IOError: cannot identify image file
>
> I didn't create the files...they are created by our customers. You can download an example of a
> broken image from the link below...sorry its over 1.5meg!
>
> http://bigboy.bizarsoftware.com.au/~tejay/product2327_image.psd
>
> From what I can gather with experimentation, the problem is that it has an adjustment layer with a
> mask. If I remove this layer and mask, resave the image, then open with PIL, it works fine.
did this work under 1.1.2 ?
the PSD driver is pretty outdated (the file format has been enhanced a couple
of times since the PSD driver was originally written, and I haven't been able to
keep up).
I'll see if I can come up with a fix for this specific problem. Stay tuned.
</F>
>
> I found this old archived email from what looks like to be a similar problem, but with no
> response?
>
> http://mail.python.org/pipermail/image-sig/2001-October/001632.html
>
> Is this a bug?
>
> terry
> _______________________________________________
> Image-SIG maillist - Image-SIG at python.org
> http://mail.python.org/mailman/listinfo/image-sig
>
More information about the Image-SIG
mailing list