You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use ImageFile.Parser.feed to get some image metadata without full image download.
What did you expect to happen?
Get ImageFile.Parser.image instance
What actually happened?
Traceback (most recent call last):
File "./reproduce.py", line 7, in <module>
p.feed(new_data)
File "/home/test/env/lib/python3.8/site-packages/PIL/ImageFile.py", line 411, in feed
im = Image.open(fp)
File "/home/test/env/lib/python3.8/site-packages/PIL/Image.py", line 2885, in open
im = _open_core(fp, filename, prefix)
File "/home/test/env/lib/python3.8/site-packages/PIL/Image.py", line 2867, in _open_core
im = factory(fp, filename)
File "/home/test/env/lib/python3.8/site-packages/PIL/ImageFile.py", line 107, in __init__
self._open()
File "/home/test/env/lib/python3.8/site-packages/PIL/WebPImagePlugin.py", line 60, in _open
self._decoder = _webp.WebPAnimDecoder(self.fp.read())
RuntimeError: could not create decoder object
What did you do?
Use
ImageFile.Parser.feed
to get some image metadata without full image download.What did you expect to happen?
Get
ImageFile.Parser.image
instanceWhat actually happened?
What are your OS, Python and Pillow versions?
This code worked for JPEG but failed for WebP:
The text was updated successfully, but these errors were encountered: