pamditherbw
Apply dithering to a greyscale image, i.e. tldr-pages
On several platforms
Several platforms
Apply dithering to a greyscale image, i.e. turn it into a pattern of black and white pixels that look the same as the original greyscale.
Read a PGM image, apply dithering, and save it to a file
pamditherbw path/to/image.pgm >path/to/file.pgmIdentifyUse the specified quantization method
pamditherbw -floyd path/to/image.pgm >path/to/file.pgmIdentifyUse the atkinson quantization method and the specified seed for a pseudo-random number generator
pamditherbw -atkinson -randomseed 1337 path/to/image.pgm >path/to/file.pgmIdentifySpecify the thresholding value for quantization methods that perform some sort of thresholding
pamditherbw -fs -value 0.3 path/to/image.pgm >path/to/file.pgmIdentify