Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another PNG bug with 5.4+ #3607

Closed
Traktormaster opened this issue Jan 25, 2019 · 2 comments
Closed

Another PNG bug with 5.4+ #3607

Traktormaster opened this issue Jan 25, 2019 · 2 comments

Comments

@Traktormaster
Copy link

I have a PNG image file that I wanted to open. It's fine with Pillow 5.3 but not with 5.4 or 5.4.1.
I thought #3535 was going to fix this as well but it did not. Here's the exception:

Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/home/user/.local/share/virtualenvs/proj/lib/python3.7/site-packages/PIL/ImageFile.py", line 252, in load
    self.load_end()
  File "/home/user/.local/share/virtualenvs/proj/lib/python3.7/site-packages/PIL/PngImagePlugin.py", line 680, in load_end
    self.png.call(cid, pos, length)
  File "/home/user/.local/share/virtualenvs/proj/lib/python3.7/site-packages/PIL/PngImagePlugin.py", line 140, in call
    return getattr(self, "chunk_" + cid.decode('ascii'))(pos, length)
AttributeError: 'PngStream' object has no attribute 'chunk_exIf'
  • OS: Arch Linux
  • Python: 3.7.2
  • Pillow: 5.4.1
from PIL import Image
im = Image.open('breaking_pillow_png_exif.png')
im.load()  # raises AttributeError with 5.4+

breaking_pillow_png_exif

@radarhere
Copy link
Member

Hi. This is actually a duplicate of #3557, and so it can also be resolved by #3558

@radarhere
Copy link
Member

#3558 has now been merged, so this should be fixed in master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants