Replace color to same semi-transparent color
Posted: 2009-07-09T07:35:58-07:00
Hello,
Sorry if the question is too simple but i've been trying to solve it without success.
This is my problem.
There's an image with some red regions (red is the example, but I want to set this color each time).
I want to get a new image with these same red regions, but with 50% transparent.
I use the following command:
It works but only because there is a red color on 0,0.
How can I set a different color each time ??? Using 'green', 'red' or #0000FF ???
Thanks a lot !!!
KiM
Sorry if the question is too simple but i've been trying to solve it without success.
This is my problem.
There's an image with some red regions (red is the example, but I want to set this color each time).
I want to get a new image with these same red regions, but with 50% transparent.
I use the following command:
Code: Select all
convert red.png -matte -fill '#00000050' -draw 'matte 0,0 replace' semi_red.png
How can I set a different color each time ??? Using 'green', 'red' or #0000FF ???
Thanks a lot !!!
KiM