[Image-SIG] Create a 'disabled' image effect (similar to how Windows shows disabled images)

Edward Cannon edward at unicornschool.org
Wed Dec 1 19:45:46 CET 2010

try using the Image.convert("L") method on you image. That will make
it greyscale
Edward Cannon

On Wed, Dec 1, 2010 at 6:38 AM,  <python at bdurham.com> wrote:
> Any suggestions on a PIL receipe that will allow me to take a color image
> and create a grayscale version of this image that gives the image a disabled
> appearance similar to the effect that Windows applies to show disabled
> icons?
> My use case is to dynamically create disabled versions of my application's
> graphics when a specific feature is disabled or unavailable.
> Thank you,
> Malcolm
> _______________________________________________
> Image-SIG maillist  -  Image-SIG at python.org
> http://mail.python.org/mailman/listinfo/image-sig

More information about the Image-SIG mailing list