Skip to content

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

Merged
radarhere merged 4 commits intopython-pillow:mainfrom
jsbueno:fix6652/imagepalette_rgba_color
Oct 10, 2022
Merged

Raise an error when allocating translucent color to RGB palette#6654
radarhere merged 4 commits intopython-pillow:mainfrom
jsbueno:fix6652/imagepalette_rgba_color

Conversation

@jsbueno
Copy link
Copy Markdown
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