以下のバッチファイルを実行します。
rem 環境によって変えてね
set im=C:\Progra~1\ImageMagick-6.3.3-Q16
rem 角丸四角で切り抜いて
%im%\convert.exe -size 100x100 xc:none -channel RGBA -fill white -draw "roundrectangle 5,5 94,94 10,10" sample2bg.jpg -compose src_in -composite sample139a.png
rem 立体化
%im%\convert.exe -size 100x100 xc:none -fill white -draw "roundrectangle 5,5 94,94 10,10" -shade 135x23 -blur 0x2 -normalize sample139a.png -compose overlay -composite sample139b.png
元画像(sample2bg.jpg)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgy6EKk6NxJS3KiFClVWvxw3u6ZgnmuiAN38uxYBt0JKi8bc0nmZKhXiVZwR0RFXLuD_bI4Jo6M9gGlwJ2N4bSGAGFeE23KaPUiNzc37XanPwNhih3yVr0MVBE4k42Mu6MA0pDT/s320/sample2bg.jpg)
出力画像(sample139b.png)
No comments:
Post a Comment