This commit is contained in:
djy0 2019-08-02 10:37:17 +08:00 committed by Andrew Murray
parent 63c15dc3ba
commit dc9c0dbfbe

View File

@ -472,7 +472,6 @@ 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"]