dithering on Image.convert() from "RGB" to "P"

Bill Janssen <[email protected]>
Newsgroups gmane.comp.python.image
Message-ID <[email protected]>
I was just looking into why error diffusion was occurring in my images
when I went from RGB to P with a 140-color image.  Unexpected.  I see in
the code that Floyd-Steinberg error diffusion will be applied on
conversions from "RGB" to "P", regardless of whether it's needed, unless
the optional "dither" parameter is specified.  So I changed my code to
specify "dither=Image.NONE" where appropriate.

Would it make sense to modify that default behavior to dither only if
needed?  That is, when converting from "RGB" to "P", only dither if the
number of colors is greater than 256?

Bill
_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.