I have a question about pixel values ​​returned from an image opened using the PIL upload function. I am using the following code:
frame = Image.open(fname).load() a = frame[10, 10]
If I upload a GIF image, a is an integer value of 43. But if I convert the image to JPEG and re-run the code, a is a tuple (253, 254, 100) .
What for? And how can I convert (253, 254, 100) back to 43?
python gif jpeg python-imaging-library
alex Apr 27 2018-11-11T00: 00Z
source share