Skip to content

PIL.ImageOps.exif_transpose() fails on some PNGs #5509

@doublex

Description

@doublex

Testcase (extension should be .py):
testcase.txt

Pillow 8.1 works, 8.2 fails

Traceback:

  File "/home/max/.local/lib/python3.8/site-packages/PIL/PngImagePlugin.py", line 940, in load_end
    self.png.call(cid, pos, length)
  File "/home/max/.local/lib/python3.8/site-packages/PIL/PngImagePlugin.py", line 187, in call
    return getattr(self, "chunk_" + cid.decode("ascii"))(pos, length)
AttributeError: 'PngStream' object has no attribute 'chunk_'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions