ppmdither
Reduce the number of colors in an image by applying dithering. More information: <https://netpbm.sourceforge.net/doc/ppmdither.html>.
Install
- All systems
-
curl cmd.cat/ppmdither.sh
- Debian
-
apt-get install netpbm - Ubuntu
-
apt-get install netpbm - Arch Linux
-
pacman -S netpbm - Kali Linux
-
apt-get install netpbm - CentOS
-
yum install netpbm-progs - Fedora
-
dnf install netpbm-progs - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install netpbm - OS X
-
brew install netpbm - Raspbian
-
apt-get install netpbm
Reduce the number of colors in an image by applying dithering. More information: <https://netpbm.sourceforge.net/doc/ppmdither.html>.
-
Read a PPM image, apply dithering and save it to a file:
ppmdither path/to/image.ppm > path/to/file.ppm -
Specify the desired number of shades for each primary color:
ppmdither -red 2 -green 3 -blue 2 path/to/image.ppm > path/to/file.ppm -
Specify the dimensions of the dithering matrix:
ppmdither -dim 2 path/to/image.ppm > path/to/file.ppm
© tl;dr; authors and contributors