以下のバッチファイルを実行します。
rem 環境によって変えてね
set im=C:\Progra~1\ImageMagick-6.3.3-Q16
rem モザイク画像の生成と縦線描画
%im%\convert.exe -size 100x100 xc:none -channel RGBA ( sample4.jpg -resize 10x10 ) -fx "i%%10<9?v.p{ceil((i+1)/10)-1,ceil((j+1)/10)-1}:0" sample143a.png
rem 横格子線のついたモザイク画像の生成
%im%\convert.exe sample143a.png -channel RGBA -fx "j%%10<9?p:0" sample143b.png
rem 立体化してタイル風に。
%im%\convert.exe sample143b.png -threshold 1 -shade 135x20 -blur 0x1 -normalize sample143b.png -compose overlay -composite sample143c.png
元画像(sample4.jpg)

出力画像(sample143b.png)
No comments:
Post a Comment