mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-12 04:37:04 +03:00
Ensure disposal key exists before checking
This commit is contained in:
parent
4a2be2af2d
commit
c73da62ce9
|
@ -443,7 +443,7 @@ def _write_multiple_frames(im, fp, palette):
|
|||
if im_frames:
|
||||
# delta frame
|
||||
previous = im_frames[-1]
|
||||
if encoderinfo["disposal"] == 2:
|
||||
if "disposal" in encoderinfo and encoderinfo["disposal"] == 2:
|
||||
# Entire frame should be delta
|
||||
# Create delta by subtracting empty image from frame (This is required)
|
||||
delta = ImageChops.subtract_modulo(
|
||||
|
|
Loading…
Reference in New Issue
Block a user