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 <[email protected]>wrote: > On Thu, May 28, 2009 at 10:22 PM, Peter Yen <[email protected]> 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> >
_______________________________________________ Image-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/image-sig
