以下のバッチファイルを実行します。
(画像をぼかした後、指定色で塗り替えて縁取りするという方法)
rem 環境によって変えてね
set im=C:\Progra~1\ImageMagick-6.3.1-Q16
%im%\convert.exe -size 100x100 xc:none ( sample2.png -matte -channel RGBA -blur 0x1 -fx p==0?0:#ccddff ) sample2.png -background none -flatten sample83a.gif
元画像(sample2.png)

出力画像(sample83a.gif)
-blurの値を変更することで、縁取り線の幅を調節できます。
%im%\convert.exe -size 100x100 xc:none ( sample2.png -matte -channel RGBA -blur 0x0.2 -fx p==0?0:#ccddff ) sample2.png -background none -flatten sample83b.gif
No comments:
Post a Comment