[Image-SIG] bug founded in convert methode

Fredrik Lundh fredrik@effbot.org
Fri, 23 Feb 2001 22:25:20 +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 ..

sorry, but this is way too little information.

- what version are you using?

- what is not working without this patch?  can you post a sample
   program that doesn't work without it?

- can you post a few more lines from your version of Image.py?
  diff -u or diff -c patches are preferred.

(in the current code base, line 405 should most definitely use
palette.mode, not palette.rawmode.  same goes for the use of
palette.mode in the convert function.  maybe the bug is else-
where?)

Cheers /F