image reduction script

Philippe Martin pmartin at snakecard.com
Sun Mar 26 20:07:32 CEST 2006


Kamilche,

I am posting the code in another thread but am not certain that convert does
anything to the picture color depth ... still searching in the doc.

Philippe




Kamilche wrote:

> 
> To reduce the color depth of an image in PIL:
>             im = im.convert(mode="P", palette=Image.ADAPTIVE)




More information about the Python-list mailing list