[Image-SIG] remove an image background using PIL
Peter Yen
colorpyen at gmail.com
Thu May 28 22:53:22 CEST 2009
Hi Fredrik,
Thanks for your quick response. The background is unknown at the time of
processing. Actually I don't need a very accurate methodology to remove all
background, removing partially is good enough.
imagick has method like floodfill, curious how to do that with PIL.
thanks a lot
-peter
On Thu, May 28, 2009 at 1:43 PM, Fredrik Lundh <fredrik at pythonware.com>wrote:
> 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.
>
> </F>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20090528/08490633/attachment.htm>
More information about the Image-SIG
mailing list