Page 1 of 1

white background -> transparent background

Posted: 2013-09-06T09:13:45-07:00
by BobT
Is it possible to use IM to transform the white background of a PNG image to transparent? The foreground material is black.

Re: white background -> transparent background

Posted: 2013-09-06T09:16:36-07:00
by snibgo
convert in.png -transparent white out.png

Re: white background -> transparent background

Posted: 2013-09-30T21:55:26-07:00
by anthony
However if your edges are not pure white you will get a lot of problems.

Background removal is no easy task, especially without and example.

For more information see IM Examples, Masking, Background Removal
http://www.imagemagick.org/Usage/masking/#bg_remove

It starts simple and gets more complex as needed.