mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-05 12:23:18 +03:00
Clean up disposal flag check
This commit is contained in:
parent
ad70fc73cb
commit
7443e6d36b
|
@ -444,8 +444,7 @@ def _write_multiple_frames(im, fp, palette):
|
||||||
if im_frames:
|
if im_frames:
|
||||||
# delta frame
|
# delta frame
|
||||||
previous = im_frames[-1]
|
previous = im_frames[-1]
|
||||||
if "disposal" in encoderinfo \
|
if disposal == 2:
|
||||||
and encoderinfo["disposal"] == 2:
|
|
||||||
base_image = background
|
base_image = background
|
||||||
else:
|
else:
|
||||||
base_image = previous["im"]
|
base_image = previous["im"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user