Skip to content

Animated, transparent GIFs not calculating diff correctly #3665

@Artheau

Description

@Artheau

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions