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

Allow putpalette to accept 1024 integers to include alpha values #5089

merged 1 commit into from Dec 29, 2020


Copy link

@radarhere radarhere commented Dec 12, 2020

Resolves #4941

At the moment, Image.putpalette can only accept 256 RGB values. As the issue found, this means that alpha values cannot be included. This PR allows 256 RGBA values as well, by stripping out every 4th value for info["transparency"] in load().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

2 participants