CmdID

CmdID / Commands

pamditherbw

Apply dithering to a greyscale image, i.e. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

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.pgmIdentify

Use the specified quantization method

pamditherbw -floyd path/to/image.pgm >path/to/file.pgmIdentify

Use 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.pgmIdentify

Specify 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