I have a greyscale TIF File. I need to convert it to RGB/ read from it in a way I can work with it.
img = Image.open(GIF_FILENAME)
rgbimg = img.convert('RGB')
for i in range(5):
print rgbimg.getpixel((i, 0))
The convert.("RGB") will automatically make everything (255,255,255) even though the picture is a really dark mostly black picture.
If I just read the greyscale numbers I get numbers from around 1400 to 1900.
I need to also save a copy of the picture as a RGB Jpeg. Picture in question: [Here]: https://i.stack.imgur.com/AuNJh.jpg
How would I go along doing this?
what about:
[EDIT]
created a test:
And that outputs:
Which is what you would expect. Is your output different?