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

Added apply_transparency() #6352

Merged
merged 2 commits into from Jun 11, 2022
Merged

Conversation

radarhere
Copy link
Member

@radarhere radarhere commented Jun 6, 2022

Resolves #6348

Adds apply_transparency(), a method to take a P mode image with a "transparency" key in the im.info dictionary, remove the "transparency" key and apply the transparency to the palette instead.

@hugovk
Copy link
Member

hugovk commented Jun 10, 2022

Thanks, for a new API, let's add this to docs (an automethod in docs/reference/Image.rst?) and release notes.

@radarhere
Copy link
Member Author

Ok, done

docs/reference/Image.rst Outdated Show resolved Hide resolved
@hugovk hugovk merged commit 8bd7e81 into python-pillow:main Jun 11, 2022
@hugovk
Copy link
Member

hugovk commented Jun 11, 2022

Thanks!

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.

Transparency is not applied to RGBA palette when opening PNG
2 participants