LinuxCommandLibrary

pamditherbw

converts grayscale images to black and white using dithering

TLDR

Dither to black and white
$ pamditherbw [input.pgm] > [output.pbm]
copy
Dither with Floyd-Steinberg
$ pamditherbw -fs [input.pgm] > [output.pbm]
copy
Dither with threshold
$ pamditherbw -threshold -value [0.5] [input.pgm] > [output.pbm]
copy

SYNOPSIS

pamditherbw [options] [file]

DESCRIPTION

pamditherbw converts grayscale images to black and white using dithering. Multiple algorithms available for different quality/speed tradeoffs. Part of Netpbm toolkit.

PARAMETERS

-fs

Floyd-Steinberg dithering.
-threshold
Simple threshold.
-hilbert
Hilbert curve dithering.
-value n
Threshold value (0.0-1.0).

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard