[Image-SIG] remove an image background using PIL

Fredrik Lundh fredrik at pythonware.com
Thu May 28 22:43:13 CEST 2009

On Thu, May 28, 2009 at 10:22 PM, Peter Yen <colorpyen at gmail.com> wrote:

> Is there any sample code to use PIL to remove the image background and make
> it transparent? Any help and advice is highly appreciated.

Depends on what the background is.  The further it is from "a single
known color", the harder it gets.


More information about the Image-SIG mailing list