Skip to content

When PNG tRNS chunk has alpha for palette entries, use RGBA palette - #10727

Merged
radarhere merged 1 commit into
python-pillow:mainfrom
radarhere:transparency
Dec 4, 2026
Merged

radarhere merged 1 commit into
python-pillow:mainfrom
radarhere:transparency

Conversation

@radarhere

Copy link
Copy Markdown
Member

#10719 sought to improve saving GIFs from P mode images with bytes transparency. The bytes in im.info["transparency"] come from PNG images.

After #6348 and now this, I think it is simpler to give up and let P mode images with bytes transparency have RGBA palettes.

@radarhere radarhere changed the title When tRNS chunk has alpha for palette entries, use RGBA palette When PNG tRNS chunk has alpha for palette entries, use RGBA palette Dec 4, 2026
@radarhere radarhere added the PNG label Dec 4, 2026
@radarhere
radarhere merged commit 257bcce into python-pillow:main Dec 4, 2026
85 of 94 checks passed
@radarhere
radarhere deleted the transparency branch December 4, 2026 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant