[Image-SIG] bug founded in convert methode

Fredrik Lundh fredrik@pythonware.com
Wed, 28 Feb 2001 11:34:54 +0100


> Jerry wrote:
> > just a small electronics yellow paper to say (it's maybe the
> > 1000th times you ear that ?) that in line 405 of Image.py
> > change self.palette.mode by self.palette.rawmode will be pleased ..

following up: further correspondence with "Jerry" revealed that
the problem only occurs if you call the "convert" method on a "P"
image read from disk, and leave out the mode argument.

According to the documentation, this should pick a mode "so that
all information in the image and the palette can be represented
without a palette."

According to the 1.1 code, this doesn't work.  Use convert("RGB")
instead.

Cheers /F