Skip to content

Ensure Image and core palettes are in sync after PA conversion - #9834

Open
akx wants to merge 2 commits into
python-pillow:mainfrom
akx:pa-to-p-to-rgba
Open

Ensure Image and core palettes are in sync after PA conversion#9834
akx wants to merge 2 commits into
python-pillow:mainfrom
akx:pa-to-p-to-rgba

Conversation

@akx

@akx akx commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

While working on #9833, I noticed that an RGBA palette's alphas would be "resurrected" if you converted from PA to P (which retains the RGBA palette in the core im object even if the ImagePalette wrapper is recreated), and then to RGBA.

With this, the "zombie" alpha from the RGBA doesn't appear anymore.
I would suspect this is more the Do What I Mean behavior, because an RGBA palette's alpha values weren't "visible" in a PA image anyway.

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.

2 participants