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!
grayscale and alpha..
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: grayscale and alpha..
convert image \( -clone 0 -threshold -1 \) +swap -alpha off -compose copy_opacity -composite resultimage
Re: grayscale and alpha..
Thanks enormously!fmw42 wrote:convert image \( -clone 0 -threshold -1 \) +swap -alpha off -compose copy_opacity -composite resultimage