mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-13 01:32:18 +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"]
|
base_im = im_frames[-2]["im"]
|
||||||
else:
|
else:
|
||||||
base_im = previous["im"]
|
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()
|
bbox = delta.getbbox()
|
||||||
if (
|
if (
|
||||||
not bbox
|
not bbox
|
||||||
|
|
Loading…
Reference in New Issue
Block a user