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