以下のバッチファイルを実行します。
rem 環境によって変えてね
set im=C:\Progra~1\ImageMagick-6.3.1-Q16
%im%\convert.exe -size 120x120 xc:#ffffffff -channel RGBA -fill #000000FF -draw "roundrectangle 10,10 110,110 10,10" -blur 0x7 -crop 100x100+10+10 +repage -channel A -fx 0.3 sample109a.png
%im%\convert.exe -size 100x100 xc:none -channel RGBA -fill white -draw "roundrectangle 0,0 99,99 10,10" sample109a.png -compose src_in -composite sample109b.png
%im%\convert.exe sample1.jpg sample109b.png -geometry +10+10 -composite sample109c.jpg
出力画像(sample109b.png)

元画像(sample1.jpg)

出力画像(sample109c.jpg)
No comments:
Post a Comment