I have a question about the pixel values returned from an image opened with PIL load function. I am using the following code:
frame = Image.open(fname).load()
a = frame[10, 10]
If I load a GIF image, a
is the integer value 43. But if I convert the image a JPEG and rerun the code, a
is a tuple (253, 254, 100)
.
Why? And how can i convert (253, 254, 100)
back to 43?