Page 1 of 1

grayscale and alpha..

Posted: 2010-04-08T08:11:02-07:00
by goruka
Is there a way using imagemagick to take a grayscale image, and generate another one, where the image is white and has the original grayscale image as alpha channel?
Thanks!

Re: grayscale and alpha..

Posted: 2010-04-08T08:56:17-07:00
by fmw42
convert image \( -clone 0 -threshold -1 \) +swap -alpha off -compose copy_opacity -composite resultimage

Re: grayscale and alpha..

Posted: 2010-04-08T10:25:53-07:00
by goruka
fmw42 wrote:convert image \( -clone 0 -threshold -1 \) +swap -alpha off -compose copy_opacity -composite resultimage
Thanks enormously!