Package: python3-pil
Version: 5.4.1-1
Severity: important
Tags: upstream fixed-upstream
Forwarded: https://github.com/python-pillow/Pillow/issues/3557

PIL.Image fails to load some PNG files. The vast majority of PNGs does
load.

$ dpkg -l antiword
...
ii  antiword       0.37-14      amd64        Converts MS Word files to text, 
PS, PDF and XML
$ python3 -c "import PIL.Image; 
PIL.Image.open(open('/usr/share/icons/hicolor/48x48/apps/antiword.png', 
'rb')).load()"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/PIL/ImageFile.py", line 252, in load
    self.load_end()
  File "/usr/lib/python3/dist-packages/PIL/PngImagePlugin.py", line 680, in 
load_end
    self.png.call(cid, pos, length)
  File "/usr/lib/python3/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_tIME'
$

This issue has been reported and fixed upstream. Is it reasonable to
cherry-pick the relevant commit[1] into buster?  Otherwise this bug will
be fixed when updating to 6.0.0.

Helmut

[1] 
https://github.com/python-pillow/Pillow/commit/4e0a73b4faf4c0b16c6b3912b64f4ad7a6c99acf

Reply via email to