mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-14 03:21:44 +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:
|
||||
# delta frame
|
||||
previous = im_frames[-1]
|
||||
if "disposal" in encoderinfo \
|
||||
and encoderinfo["disposal"] == 2:
|
||||
if disposal == 2:
|
||||
base_image = background
|
||||
else:
|
||||
base_image = previous["im"]
|
||||
|
|
Loading…
Reference in New Issue
Block a user