[Image-SIG] Re: cannot identify .psd image
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.
> 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!
> 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
I'll see if I can come up with a fix for this specific problem. Stay tuned.
> I found this old archived email from what looks like to be a similar problem, but with no
> Is this a bug?
> Image-SIG maillist - Image-SIG at python.org
More information about the Image-SIG