以下のバッチファイルを実行します。
rem 環境によって変えてね
set im=C:\Progra~1\ImageMagick-6.3.7-Q16
%im%\convert.exe tree1.jpg -threshold 40000 -negate -matte -channel a -fx "r"
-channel rgb -fx "#3070A0FF" -channel rgba ( +clone -background #FFFFFF
-shadow 97x4+0+0 ) +swap -background #3070A0FF -mosaic
-crop 300x225+0+0 sample254a.png
上記バッチでは、画像を2値化して、白の影付けを行い、背景色は青っぽい色に
設定しています。
元画像(tree1.jpg)

出力画像(sample254a.png)

関連項目
ImageMagickで閾値を使用して切り取った画像に影付けする
ImageMagickで、画像を2値化して白色部分は元画像のままで黒色部分は影付けした画像を生成する
ImageMagickとPHPで画像の輪郭を影で浮かび上がらせた画像を生成する (Imagickによる同様の処理)
No comments:
Post a Comment