List Info

Thread: Removing an Alpha Channel




Removing an Alpha Channel
user name
2007-01-31 11:41:42
I have written an app using PIL that uses alpha channels during processing, but does not require them once the image is complete.  Is there an easy way to remove existing alpha channels?  I suspect there is but the docs don't make this obvious.

Thank You,
Jason Van Anden
www.smileproject.com
Re: Removing an Alpha Channel
user name
2007-02-01 09:36:29
Jason Van Anden wrote:

>I have written an app using PIL that uses alpha channels
during processing,
> but does not require them once the image is complete. 
Is there an easy way
> to remove existing alpha channels?  I suspect there is
but the docs don't
> make this obvious.

im = im.convert("RGB")

should do the trick.

</F> 



_______________________________________________
Image-SIG maillist  -  Image-SIGpython.org
htt
p://mail.python.org/mailman/listinfo/image-sig

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )