rem 環境によって変えてね
set im=C:\Progra~1\ImageMagick-6.3.7-Q16
%im%\convert.exe -size 240x200 xc:none -matte -channel rgba -fill black -draw "rectangle 0,0,19,199 rectangle 220,0,239,199" -blur 0x10 -gravity center -crop 200x200+0+0 sample267a.png
%im%\convert.exe sf.jpg -geometry +50+50 sample267a.png -composite sample267b.jpg
出力画像(sample267a.png)

重ね合わせ画像(sf.jpg)
重ねあわせ例(sample267b.jpg)

上下をグラデーションで塗るには以下のバッチファイルを実行します。
rem 環境によって変えてね
set im=C:\Progra~1\ImageMagick-6.3.7-Q16
%im%\convert.exe -size 200x240 xc:none -matte -channel rgba -fill black -draw "rectangle 0,0,199,19 rectangle 0,220,199,239" -blur 0x10 -gravity center -crop 200x200+0+0 sample267c.png
%im%\convert.exe sf.jpg -geometry +50+50 sample267c.png -composite sample267d.jpg
出力画像(sample267c.png)

重ねあわせ例(sample267d.jpg)

関連項目
ImageMagickで角丸四角画像の端をグラデーションで塗る
ImageMagickで画像の端をグラデーションで塗る
ImageMagickで、画像の上下・左右をバンド状グラデーションで塗る
No comments:
Post a Comment