Encoderinfo fix

This commit is contained in:
wiredfool 2017-02-23 06:57:10 -08:00 committed by Andrew Murray
parent cee397ab00
commit b9618b3ce7

View File

@ -340,7 +340,7 @@ def _write_multiple_frames(im, fp, palette):
for imSequence in [im]+im.encoderinfo.get("append_images", []): for imSequence in [im]+im.encoderinfo.get("append_images", []):
for im_frame in ImageSequence.Iterator(imSequence): for im_frame in ImageSequence.Iterator(imSequence):
im_frame = _convert_mode(im_frame) im_frame = _convert_mode(im_frame)
im_frame = _normalize_palette(im_frame, palette, encoderinfo) im_frame = _normalize_palette(im_frame, palette, im.encoderinfo)
encoderinfo = im.encoderinfo.copy() encoderinfo = im.encoderinfo.copy()
if isinstance(duration, (list, tuple)): if isinstance(duration, (list, tuple)):