rem 環境によって変えてね
set im=C:\Progra~1\ImageMagick-6.4.8-Q16
%im%\convert.exe -fill white -font Arial -pointsize 25 -background none "label:ImageMagick" -bordercolor black -border 10x5 ( +clone -channel rgb -fx "1" -matte -channel a -fx "j<h/2?0:(h-j)/h" ) -composite ( +clone -channel rgb -fx "1" -bordercolor white -border 1x1 -fx "(h-j)/h*p" -distort SRT -10 ) -swap 0,1 -gravity center -composite sample918a.png
%im%\convert.exe sample918a.png -bordercolor black -border 10x10 sample918b.png
出力画像1(sample918a.png)

出力画像2(sample918b.png):黒背景の余白を追加

No comments:
Post a Comment