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

Raise an error when allocating translucent color to RGB palette #6654

Merged
merged 4 commits into from Oct 10, 2022

Conversation

jsbueno
Copy link
Contributor

@jsbueno jsbueno commented Oct 9, 2022

Fixes #6652

Raise ValueError when a translucent or transparent RGBA color is used with ImagePalette.getcolor in
a RGB mode instance.

@radarhere radarhere changed the title Fix #6652: Handle translucent color used in RGB ImagePallete Raise an error when allocating translucent color to RGB ImagePalette Oct 10, 2022
@radarhere radarhere changed the title Raise an error when allocating translucent color to RGB ImagePalette Raise an error when allocating translucent color to RGB palette Oct 10, 2022
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.

ImagePalette: loading a translucent RGBA color into an RGB palette will break the palette
3 participants