-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Conversion P to L wrong? #5728
Copy link
Copy link
Closed
Description
from PIL import Image
img = Image.open('p.png')
print('P->L: ', img.convert('L').getpixel((0, 0)))
print('P->RGB: ', img.convert('RGB').getpixel((0, 0)))
print('P->RGB->L: ', img.convert('RGB').convert('L').getpixel((0, 0)))Old
PIL: 6.2.2
P->L: 175
P->RGB: (177, 175, 175)
P->RGB->L: 175
7.0.0+
After commit #4320
PIL: 8.3.2
P->L: 175
P->RGB: (177, 175, 175)
P->RGB->L: 176
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
