Skip to content

Error opening png file #3557

@Fogapod

Description

@Fogapod

What did you do?

I tried to open image

What did you expect to happen?

Image to be opened without errors

What actually happened?

Pillow raised error.
Traceback:

File "/usr/local/lib/python3.6/dist-packages/PIL/Image.py", line 915, in convert
    self.load()
  File "/usr/local/lib/python3.6/dist-packages/PIL/ImageFile.py", line 252, in load
    self.load_end()
  File "/usr/local/lib/python3.6/dist-packages/PIL/PngImagePlugin.py", line 680, in load_end
    self.png.call(cid, pos, length)
  File "/usr/local/lib/python3.6/dist-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

What are your OS, Python and Pillow versions?

  • OS: Ubuntu 18.04.1 LTS x86_64
  • Python: 3.6
  • Pillow: 5.4.1

Demonstration code

from PIL import Image


img = Image.open('50767927-ad61c580-128f-11e9-879e-502cf52fc129.png')
img.load()

Image causing troubles

edit: Pillow version I use is 5.4.1, not 3.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    AnacondaIssues with Anaconda's Pillow

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions