rem 環境によって変えてね
set im=C:\Progra~1\ImageMagick-6.3.8-Q16
%im%\convert.exe sf.jpg -fx "luminosity" ( -size 1x1 xc:blue xc:green xc:yellow xc:red -append -matte -channel a -fx "0.5" -channel rgba -resize 200x200! ) -composite sample331.png
元画像(sf.jpg)
出力画像(sample331.png)

2008/07/13追記
ver6.4.0あたりからluminosityからlightnessに変わったので、以下のバッチを実行します。
rem 環境によって変えてね
set im=C:\Progra~1\ImageMagick-6.4.2-Q16
%im%\convert.exe sf.jpg -fx "lightness" ( -size 1x1 xc:blue xc:green xc:yellow xc:red -append -matte -channel a -fx "0.5" -channel rgba -resize 200x200! ) -composite sample331.png
No comments:
Post a Comment