function _write_multiple_frames in GifImagePlugin.py has an error on line 445 (line 445 in present repo, line 443 in released version 5.4.1).
Specifically, when the disposal_method is set to '2', it should calculate the diff against the background color, but currently it is calculating the diff against the previous frame
previous = im_frames[-1],
and this produces substantial artifacts in the rendering whenever there are still portions of the image in adjacent frames.
function
_write_multiple_framesinGifImagePlugin.pyhas an error on line 445 (line 445 in present repo, line 443 in released version 5.4.1).Specifically, when the disposal_method is set to '2', it should calculate the diff against the background color, but currently it is calculating the diff against the previous frame
previous = im_frames[-1],and this produces substantial artifacts in the rendering whenever there are still portions of the image in adjacent frames.