mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-28 05:54:12 +03:00
Drop alpha channels when computing frame delta
This commit is contained in:
parent
9f61be4c72
commit
8373c38840
|
@ -1058,7 +1058,9 @@ def _write_multiple_frames(im, fp, chunk, rawmode):
|
|||
base_im = im_frames[-2]["im"]
|
||||
else:
|
||||
base_im = previous["im"]
|
||||
delta = ImageChops.subtract_modulo(im_frame, base_im)
|
||||
delta = ImageChops.subtract_modulo(
|
||||
im_frame.convert("RGB"), base_im.convert("RGB")
|
||||
)
|
||||
bbox = delta.getbbox()
|
||||
if (
|
||||
not bbox
|
||||
|
|
Loading…
Reference in New Issue
Block a user