Skip to content

How and where does Pillow render successive gif frames on top of one another? #5537

Answered by RLaursen
RLaursen asked this question in Q&A
Discussion options

You must be logged in to vote

So I've figured out that the decoder is the culprit here, commit #5333 reversed the previous issue decoding gifs had. Previously, a subsequent gif frame would use the background's palette for the foreground, now subsequent frames' backgrounds use the current frame's palette. By flattening the GIF in the decoder (by leaving image8 as is where transparency exists), the wrong colors are being used for the background.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@RLaursen
Comment options

Answer selected by RLaursen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant