Options (4)
-rbooleanSpecify the desired number of shades for each primary color
Example:
ppmdither {{[-r|-red]}} {{2}} {{[-g|-green]}} {{3}} {{[-b|-blue]}} {{2}} {{path/to/image.ppm}} > {{path/to/file.ppm}}-gbooleanSpecify the desired number of shades for each primary color
Example:
ppmdither {{[-r|-red]}} {{2}} {{[-g|-green]}} {{3}} {{[-b|-blue]}} {{2}} {{path/to/image.ppm}} > {{path/to/file.ppm}}-bbooleanSpecify the desired number of shades for each primary color
Example:
ppmdither {{[-r|-red]}} {{2}} {{[-g|-green]}} {{3}} {{[-b|-blue]}} {{2}} {{path/to/image.ppm}} > {{path/to/file.ppm}}-dbooleanSpecify the dimensions of the dithering matrix
Example:
ppmdither {{[-d|-dim]}} {{2}} {{path/to/image.ppm}} > {{path/to/file.ppm}}Examples (3)
Read a PPM image, apply dithering, and save it to a file
ppmdither path/to/image.ppm > path/to/file.ppmSpecify the desired number of shades for each primary color
ppmdither [-r|-red] 2 [-g|-green] 3 [-b|-blue] 2 path/to/image.ppm > path/to/file.ppmSpecify the dimensions of the dithering matrix
ppmdither [-d|-dim] 2 path/to/image.ppm > path/to/file.ppmmade by @shridhargupta | data from tldr-pages