Just need a little help with the stack I think
Posted: 2011-02-18T10:55:31-07:00
OK, I have two images to work with in the beginning, and I have three successful commands to get me to the finished result. I am trying to combine the commands down to one and avoid temporary images.
The starting images are:
android.png
and concentric.png
The first command uses the android as an alpha channel mask so I end up with an android cutout of concentric.png including the drop shadow
The result is android-con.png
But it is a little too transparent, so the next command just doubles it up
Which yields android-dub.png
But, I want to bring in a white glow in place of the blue drop shadow to help define the lines a little better, so I run:
Which yields the final result android-final.png
Now for combining them:
I started with bringing it down to two commands:
Which works great. But, when I try to replace "android-con.png" with the first command, the image comes out wrong.
Yields android-fail.png
I'm sure I'm misunderstanding either the way parentheses work, or the way +clone works. Any advice?
Thanks,
Jon F Hancock
The starting images are:
android.png
and concentric.png
The first command uses the android as an alpha channel mask so I end up with an android cutout of concentric.png including the drop shadow
Code: Select all
convert concentric.png android.png -alpha Set -compose Dst_In -composite android-con.png
But it is a little too transparent, so the next command just doubles it up
Code: Select all
convert android-con.png \( +clone \) -composite android-dub.png
But, I want to bring in a white glow in place of the blue drop shadow to help define the lines a little better, so I run:
Code: Select all
convert android.png -negate android-con.png -composite android-final.png
Now for combining them:
I started with bringing it down to two commands:
Code: Select all
convert concentric.png android.png -alpha Set -compose Dst_In -composite android-con.png
convert android.png -negate \( android-con.png \( +clone \) -composite \) -composite android-final.png
Code: Select all
convert android.png -negate \( \( concentric.png android.png -alpha Set -compose Dst_In -composite \) \( +clone \) -composite \) -composite android-fail.png
I'm sure I'm misunderstanding either the way parentheses work, or the way +clone works. Any advice?
Thanks,
Jon F Hancock