Skip to content

Allow RGB and RGBA values for PA image putpixel#6504

Merged
mergify[bot] merged 2 commits intopython-pillow:mainfrom
radarhere:pyaccess_pa
Aug 31, 2022
Merged

Allow RGB and RGBA values for PA image putpixel#6504
mergify[bot] merged 2 commits intopython-pillow:mainfrom
radarhere:pyaccess_pa

Conversation

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