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
i only convert a animate gif format to animate webP format
What did you expect to happen?
it can convert success
What actually happened?
python3.7/site-packages/PIL/WebPImagePlugin.py" , line 292, in _save_all timestamp += duration TypeError: unsupported operand type(s) for +=: 'int' and 'NoneType'
What are your OS, Python and Pillow versions?
OS: macos Monterey version 12.2.1
Python: 3.7.11
Pillow: 8.4.0
through debug, i know the reason is that pillow open gif image use method im.info.get("duration") is null, when i convert to webP format with no Coustom duration param。 because duration come from duration = im.encoderinfo.get("duration", im.info.get("duration")) [WebPImagePlugin.py line 195] be NoneType, it will traceback in WebPImagePlugin.py 292
The text was updated successfully, but these errors were encountered:
radarhere
changed the title
webP plugin save animated webp need default duration value
WebP plugin save animated webp need default duration value
Mar 17, 2022
What did you do?
i only convert a animate gif format to animate webP format
What did you expect to happen?
it can convert success
What actually happened?
python3.7/site-packages/PIL/WebPImagePlugin.py" , line 292, in _save_all timestamp += duration TypeError: unsupported operand type(s) for +=: 'int' and 'NoneType'
What are your OS, Python and Pillow versions?
through debug, i know the reason is that pillow open gif image use method im.info.get("duration") is null, when i convert to webP format with no Coustom duration param。 because duration come from duration = im.encoderinfo.get("duration", im.info.get("duration")) [WebPImagePlugin.py line 195] be NoneType, it will traceback in WebPImagePlugin.py 292
traceback:
i think duration need a default value when not get
here is my code:
the image file in my github : https://github.com/jeevi-cao/study/blob/master/python/YD_cnt_11_019CS3rXgAIN.gif
The text was updated successfully, but these errors were encountered: