アルファチャンネルを持つ画像をディザ変換したサンプル

Last Update : 2012/06/11

Windows7 x64 上で、ImageMagick を使って変換。

参考ページ:

画像背景色を変更

結果画像変換に使った記述
元画像(アルファチャンネル付きpng)
convert src.png -channel A -threshold 50% dst00.gif
convert src.png -channel A -ordered-dither checks dst01.gif
convert src.png -channel A -ordered-dither 2x2 dst02.gif
convert src.png -channel A -ordered-dither 3x3 dst03.gif
convert src.png -channel A -ordered-dither 4x4 dst04.gif
convert src.png -channel A -ordered-dither o8x8 dst05.gif
convert src.png -channel A -ordered-dither h8x8a dst06.gif
convert src.png -channel RGBA -separate ( +clone -monochrome ) +swap +delete -combine dst07.gif
convert src.png -channel RGBA -separate ( +clone -dither FloydSteinberg -monochrome ) +swap +delete -combine dst08.gif
convert src.png -channel RGBA -separate ( +clone -remap pattern:gray50 ) +swap +delete -combine dst09.gif
convert src.png -channel RGBA -separate ( +clone -dither FloydSteinberg -remap pattern:gray50 ) +swap +delete -combine  dst10.gif