Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefer global transparency in GIF when replacing with background color #5756

Merged
merged 1 commit into from Oct 12, 2021

Conversation

radarhere
Copy link
Member

Resolves #5656

Using the image from that issue,
input

from PIL import Image
im = Image.open("input.gif")
im.seek(2)
im.save("out.png")

Before
before

After
after

@radarhere radarhere added the GIF label Oct 11, 2021
@hugovk hugovk merged commit ac74226 into python-pillow:master Oct 12, 2021
@radarhere radarhere deleted the gif_transparency branch October 12, 2021 22:36
@radarhere radarhere changed the title Prefer global transparency over frame transparency when replacing with background color Prefer global transparency in GIF when replacing with background color Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AnimGIF not transparent
2 participants