Your original.png image has transparency. So you need to combine the transparency of the original.png and mascara.png.
You have not said what version of IM you have nor your platform. Please always provide that when asking questions.
In Unix:
Code: Select all
convert original.png mascara.png \
\( -clone 0 -alpha extract \) \
\( -clone 1,2 -compose multiply -composite \) \
-delete 1,2 -alpha off -compose over -compose copy_opacity -composite result.png
In Windows:
Code: Select all
convert original.png mascara.png ^
( -clone 0 -alpha extract ) ^
( -clone 1,2 -compose multiply -composite ) ^
-delete 1,2 -alpha off -compose over -compose copy_opacity -composite result.png
I have split the command into multiple lines, so if you copy and past, be sure that there are no spaces after the ending characters / or ^, depending upon your OS.
For one long line of code:
In Unix:
Code: Select all
convert original.png mascara.png \( -clone 0 -alpha extract \) \( -clone 1,2 -compose multiply -composite \) -delete 1,2 -alpha off -compose over -compose copy_opacity -composite result.png
In Windows:
Code: Select all
convert original.png mascara.png ( -clone 0 -alpha extract ) ( -clone 1,2 -compose multiply -composite ) -delete 1,2 -alpha off -compose over -compose copy_opacity -composite result.png