http://imagemagick.org/Usage/bugs/trans_bug/
and then conposite images
or you can use something like that
Code: Select all
convert test.jpg -matte -channel A -fx 0.5 test2.png
Code: Select all
convert test.jpg -matte -channel A -fx 0.5 test2.png
Code: Select all
convert -size 400x300 xc:blue blue_square.png
convert -size 400x300 xc:none -draw " fill black rectangle 50,50 350,250 " black_square.png
composite -compose Dst_Out black_square.png -gravity center blue_square.png -matte result_border.png
composite -blend 88 -gravity center result_border.png sunflower.jpg -matte blue.jpg