Re: Is it possible to combine 2 images & make a transparent PNG?
Posted: 2008-05-04T17:04:02-07:00
I am not quite sure I know exactly how you want these two combined. But you can do something like what you have by the following with a 75% opacity where it is just blue (using a checkerboard background as I don't have your striped background).
convert tcw.png \( tcb.png -fill white -opaque "rgb(255,0,0)" -fill white -opaque "rgb(68,22,187)" -fill gray75 -opaque "rgb(0,22,187)" \) +matte -compose copy_opacity -composite tcw_t75.png
convert \( -size 214x208 pattern:checkerboard \) tcw_t75.png -composite tcw_t75_checks.png
or with just the white background image as follows:
convert tcw.png \( +clone -fill black -opaque white -fill white -opaque "rgb(255,0,0)" -fill white -opaque "rgb(68,22,187)" -fill gray75 -opaque "rgb(68,90,255)" \) +matte -compose copy_opacity -composite tcw_t75.png
convert \( -size 214x208 pattern:checkerboard \) tcw_t75.png -composite tcw_t75_checks.png
convert tcw.png \( tcb.png -fill white -opaque "rgb(255,0,0)" -fill white -opaque "rgb(68,22,187)" -fill gray75 -opaque "rgb(0,22,187)" \) +matte -compose copy_opacity -composite tcw_t75.png
convert \( -size 214x208 pattern:checkerboard \) tcw_t75.png -composite tcw_t75_checks.png
or with just the white background image as follows:
convert tcw.png \( +clone -fill black -opaque white -fill white -opaque "rgb(255,0,0)" -fill white -opaque "rgb(68,22,187)" -fill gray75 -opaque "rgb(68,90,255)" \) +matte -compose copy_opacity -composite tcw_t75.png
convert \( -size 214x208 pattern:checkerboard \) tcw_t75.png -composite tcw_t75_checks.png