[Image-SIG] Removing an Alpha Channel

Fredrik Lundh fredrik at pythonware.com
Thu Feb 1 16:36:29 CET 2007


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> 





More information about the Image-SIG mailing list