[gdal-dev] RGB to PALETTE conversion
Paulo Pires
paulopires16 at gmail.com
Tue Jan 23 10:46:17 PST 2018
Hello,
I'm trying to convert RGB image to PALETTE image with PIL:
/img = Image.open(tiffile)
img = img1convert("P", palette=Image.ADAPTIVE, colors=256)
img.save(newtiffile+"_index.tif")
img.close()/
...but, for example, the white color is 245, not 255 :(
And from CMYK to PALETTE? Is it possible? gdal option, please...
Thanks
--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
More information about the gdal-dev
mailing list