Animated transparent GIFs broken? #6420
Answered
by
radarhere
TheRealQuantam
asked this question in
Q&A
-
It seems like opaque pixels in the first frame are being left opaque when they should be made transparent in the second frame. The dragon rider on the 5th row really shows it off well. |
Beta Was this translation helpful? Give feedback.
Answered by
radarhere
Jul 7, 2022
Replies: 1 comment 6 replies
-
Those images were generated with Pillow 9.1.1. I just updated to Pillow 9.2, but the problem is still there. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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