Page 1 of 1

How do I make all the WHITE in an image transparent?

Posted: 2011-02-16T09:59:47-07:00
by aLabelMaker
I have a black and white graphic of some trees. The trees are black and the background is white. I need to make the background transparent.

Any suggestions?

Re: How do I make all the WHITE in an image transparent?

Posted: 2011-02-16T12:32:14-07:00
by fmw42
convert image -transparent white result.png (any suffix such as gif, tiff that supports transparency --- Note jpg does not support transparency)

see http://www.imagemagick.org/Usage/color_basics/#replace

I suggest as a beginner that you might study

http://www.imagemagick.org/Usage/reference.html
http://www.imagemagick.org/Usage/
http://www.imagemagick.org/script/comma ... ptions.php
http://www.imagemagick.org/script/comma ... essing.php