mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Update GifImagePlugin.py
This commit is contained in:
parent
8696f06fbe
commit
fcaf27d51c
|
@ -472,6 +472,10 @@ def _write_multiple_frames(im, fp, palette):
|
|||
else:
|
||||
bbox = None
|
||||
im_frames.append({"im": im_frame, "bbox": bbox, "encoderinfo": encoderinfo})
|
||||
|
||||
# see: https://github.com/python-pillow/Pillow/issues/4002
|
||||
if len(im_frames) == 1 and 'duration' in im_frames[0]['encoderinfo']:
|
||||
im.encoderinfo['duration'] = im_frames[0]['encoderinfo']['duration']
|
||||
|
||||
if len(im_frames) > 1:
|
||||
for frame_data in im_frames:
|
||||
|
|
Loading…
Reference in New Issue
Block a user