Transparent "feathering"
Posted: 2007-04-05T09:04:52-07:00
I am trying to remove a color from an image (ie, make transparent), but along the edges of transparency create a feathered effect where it fades from transparent to opaque over the remaining colors.
The idea is to start with an image like this

and make it look like this

I've come to a dead end of ideas, the closest I have gotten is by the following:
which produces:

Obviously the blurred matte
has half it's gradient inside the original yellow circle so applying the matte will produce the above, which is not what I'm after.
Thanks for any help with this problem.
Jeremy
The idea is to start with an image like this

and make it look like this

I've come to a dead end of ideas, the closest I have gotten is by the following:
Code: Select all
convert source.png -transparent yellow no-yellow.png
convert no-yellow.png -channel matte -separate +matte reverse-matte.png
convert reverse-matte.png -negate matte.png
convert matte.png -blur 0x10 blur-matte.png
convert source.png blur-matte.png +matte -compose CopyOpacity -composite result.png

Obviously the blurred matte

Thanks for any help with this problem.
Jeremy