image reduction script

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


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.


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