Image.convert broken for P to RGB? #6390
Answered
by
radarhere
TheRealQuantam
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
radarhere
Jun 22, 2022
Replies: 1 comment 4 replies
-
Testing your code, I think all of your problems can be solved by replacing img.palette = img_pal with img.putpalette(img_pal) See https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.Image.putpalette for documentation. |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
radarhere
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Testing your code, I think all of your problems can be solved by replacing
with
See https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.Image.putpalette for documentation.