Hi there!
I've a grayscale image that would like to turn into transparent, as follows:
White --> fully transparent
Black --> fully opaque
and everything in the middle should be proportionally turned into transparent.
I tried replacing white with transparent (even using -fuzz) but it doesn't achieve what I want.
Ideas?
thanks!
fading greyscale image proportionally
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: fading greyscale image proportionally
convert mask_image -negate -background black -alpha shape shape_image
See Masks as Colored Shapes
http://www.imagemagick.org/Usage/masking/#shapes
The use of -alpha shape was added AFTER that specific discusion.
See Masks as Colored Shapes
http://www.imagemagick.org/Usage/masking/#shapes
The use of -alpha shape was added AFTER that specific discusion.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/