mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +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:
|
else:
|
||||||
bbox = None
|
bbox = None
|
||||||
im_frames.append({"im": im_frame, "bbox": bbox, "encoderinfo": encoderinfo})
|
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:
|
if len(im_frames) > 1:
|
||||||
for frame_data in im_frames:
|
for frame_data in im_frames:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user