[gdal-dev] CMYK to PALETTE color converter

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[gdal-dev] CMYK to PALETTE color converter

Paulo Pires
Hello,

Is it possible to convert image directely from CMYK to PALETTE color? To do
that I need to convert first to RGB...

Thanks




--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: CMYK to PALETTE color converter

Paulo Pires
This post was updated on .
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
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev