I have a set of GeoTIFF having
photometric = palette, I need to convert it to a
greyscale image without losing associated data values.
I need to do using
Changing the color could be done by setting the
Luminance mode) using
from PIL import Image im = Image.open("test_in.tif") im.tag = 1 im.save("test_out.tif")
The problem is that the generated file does not have any spatial ref., what should I do ?
Sample : image sample