[Image-SIG] PIL Image.getcolors() returns None

Guillaume Lathoud glathoud at yahoo.fr
Tue Jul 15 14:02:01 CEST 2008


ok thanks, sorry about that.


--- En date de : Mar 15.7.08, Fredrik Lundh <fredrik at pythonware.com> a écrit :

> De: Fredrik Lundh <fredrik at pythonware.com>
> Objet: Re: [Image-SIG] PIL Image.getcolors() returns None
> À: image-sig at python.org
> Date: Mardi 15 Juillet 2008, 13h25
> Guillaume Lathoud wrote:
> 
> > Hello, here is an issue with PIL 1.1.6 on a Windows XP
> platform:
> > 
> > import Image
> > im = Image.open(
> 'pil-1.1.6-Image-getcolors.png' )
> > im.show()  # Displays the image correctly.
> > print im.getcolors()  # Bug: displays
> "None".
> 
> The quickest way to fix this bug is to double-check the
> documentation:
> 
>      http://effbot.org/tag/PIL.Image.Image.getcolors
> 
> Note the section that begins with "If the maxcolors
> value is exceeded, 
> the method stops counting and returns None."
> 
> </F>
> 
> _______________________________________________
> Image-SIG maillist  -  Image-SIG at python.org
> http://mail.python.org/mailman/listinfo/image-sig


      _____________________________________________________________________________ 
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr


More information about the Image-SIG mailing list