Skip to content

Animated transparent GIFs broken? #6420

Answered by radarhere
TheRealQuantam asked this question in Q&A
Discussion options

You must be logged in to vote

If you add disposal=2 to the arguments when saving, I find that it works.

Disposal is a part of the GIF format, indicating how the contents of the previous frame should be treated. Should they not be disposed, and left in place, so that the next frame can build on top of that? Should they be disposed, and should we reset to the background color?

Our documentation about the disposal setting can be seen at https://pillow.readthedocs.io/en/stable/handbook/image-file-formats.html#saving

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@radarhere
Comment options

@TheRealQuantam
Comment options

@radarhere
Comment options

Answer selected by radarhere
@TheRealQuantam
Comment options

@radarhere
Comment options

@TheRealQuantam
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants