[gdal-dev] CMYK to PALETTE color converter

Paulo Pires paulopires16 at gmail.com
Tue Oct 10 15:59:16 PDT 2017


This is an example: 

*im.convert('RGB').convert("P", palette=Image.ADAPTIVE, colors=256)*

But I have this error: 

* File "C:\Python27\lib\site-packages\PIL\Image.py", line 926, in convert
    im = self.im.quantize(colors)
ValueError: quantization error*



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html


More information about the gdal-dev mailing list