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 RGB and RGBA values for PA image putpixel #6504

Merged
merged 2 commits into from
Aug 31, 2022

Conversation

radarhere
Copy link
Member

@radarhere radarhere commented Aug 14, 2022

Resolves #6502

This is continuing the work of #3519, "Allow RGB and RGBA values for P image putpixel", allowing the behaviour for PA images as well, so that the following code can run.

from PIL import Image
im = Image.new("PA", (1, 1))
im.putpixel((0, 0), (255, 0, 0))

Copy link
Member

@hugovk hugovk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, ready for merge once conflict fixed.

@hugovk hugovk added the automerge Automatically merge PRs that are ready label Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Automatically merge PRs that are ready Palette
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possible missing "PA" check
2 participants