Show HN: Ordered dithering command-line tool
This command-line tool applies ordered dithering to images, a technique that uses a fixed threshold matrix to create the illusion of continuous tones from a limited color palette. It's useful for retro-style image processing, reducing color depth, or preparing images for limited-display environments.
背景メモ
- **Ordered dithering** は画像を減色する古典的な手法で、各ピクセルの濃淡を周囲の点(ディザパターン)の配置で表現する。限られた色数しか使えない古いディスプレイやプリンターで滑らかな階調を再現するために開発され、今もレトロゲーム風の演出や電子ペーパー表示などで使われる。
- このツールは **コマンドラインから画像に秩序化ディザリングを適用できるシンプルなプログラム**。入出力はPNG画像、ディザマトリックスのサイズ(2×2〜8×8)や量子化ビット数を指定可能。
- 著者は趣味として画像処理ツールを自作しており、このツールはその一つ。Go言語で書かれ、go install で簡単にインストールできる。
- **Show HN** は Hacker News に自作プロジェクトを投稿する場。コミュニティのフィードバックを得る目的が多い。