don't get apng duration for still apng image

This commit is contained in:
Mauricio 2020-08-05 22:12:41 -04:00
parent aaeee7db5c
commit 0cec277d3d

View File

@ -80,7 +80,7 @@ def get_apng_duration(file):
dur = 0
for frame, frame_info in img.frames:
dur += frame_info.delay*10 # convert delay from centiseconds to milliseconds
if frame_info: dur += frame_info.delay*10 # convert delay from centiseconds to milliseconds
return dur