[Image-SIG] Re: Palette problem with ImageGrab
Fredrik Lundh
fredrik at pythonware.com
Sat Nov 15 10:02:38 EST 2003
Alfred Milgrom wrote:
> I am having a bit of trouble with the palette of images created using
> ImageGrab, and would be grateful if anyone can help.
>
> After using ImageGrab and setting the mode to 'P', the palette returned by
> im.palette is always the default (gradated) palette, rather than the
> palette of actual colours in the grabbed image.
"setting the mode to 'P'" sounds a bit scary; the "mode" attribute
shouldn't be modified. (to convert between different modes, use
the "convert" method).
can you perhaps post some code?
</F>
More information about the Image-SIG
mailing list