-fxオプションで偶数の縦・横ラインで明るさを変更することで
実現できます。
サンプルバッチファイル
rem 環境によって変えてね。
set im=C:\Progra~1\ImageMagick-6.3.0-Q16
%im%\convert.exe sample1.jpg -fx 'i%%2*j%%2?p:p*1.7' sample25a.jpg
%im%\convert.exe sample1.jpg -fx 'i%%2*j%%2?p:p*0.7' sample25b.jpg
元画像(sample1.jpg)

明るく網目を掛けた場合(sample25a.jpg)

暗く網目を掛けた場合(sample25b.jpg)

関連項目
ImageMagickとPHPで画像に網掛けをする
No comments:
Post a Comment