Page 1 of 1

Aplha channel depending on intencity

Posted: 2010-03-29T08:59:26-07:00
by Kevich
I have grayscale pic, and I need to set alpha channel of each pixel depending on white intecity. So if I have FF of intencity I'll need to have FF alpha channel, 22 -> 22 etc. Could someone help me how to do this using convert command line command
thanks in advance

Re: Aplha channel depending on intencity

Posted: 2010-03-29T09:55:46-07:00
by snibgo
convert in.png -alpha on -channel alpha -fx r out.png

Re: Aplha channel depending on intencity

Posted: 2010-03-29T10:08:06-07:00
by fmw42
try

convert grayimage.xxx -alpha copy transparentimage.png


see http://www.imagemagick.org/Usage/basics/#alpha_copy

Re: Aplha channel depending on intencity

Posted: 2010-03-29T10:42:55-07:00
by Kevich
thank's a lot. Both methods are Okay =) i'm new at IM, so have some stucks, that's seems simple