[Image-SIG] Convert Function and Palette Mode

"Walter Dörwald" walter@livinglogic.de
Thu, 15 Mar 2001 17:41:54 +0100


On 15.03.01 at 05:56 Takekun Sato wrote:

> It seems that 'im.convert("P")' always converts
> an image with 'Web-Color'.
> 
> So, resultant image is surely made up of 216 colors 
> such as #333333,#336699,#3366CC,...
> 
> How can I change the behavior to make the 'convert()'
> to use appropriate color palette other than 'Web-Color'?

Try im.convert("P", colors=32, palette=Image.ADAPTIVE)
or something like that.


Bye,
   Walter Dörwald

-- 
Walter Dörwald · LivingLogic AG · Bayreuth, Germany ·
www.livinglogic.de