LinuxCommandLibrary

pgmtopbm

converts PGM grayscale images to PBM bitmap

TLDR

Convert grayscale to bitmap

$ pgmtopbm [input.pgm] > [output.pbm]
copy
Convert with dithering
$ pgmtopbm -fs [input.pgm] > [output.pbm]
copy
Convert with threshold
$ pgmtopbm -threshold -value [0.5] [input.pgm] > [output.pbm]
copy

SYNOPSIS

pgmtopbm [options] [file]

DESCRIPTION

pgmtopbm converts PGM grayscale images to PBM bitmap. Uses dithering or thresholding to create 1-bit output. Part of Netpbm toolkit.

PARAMETERS

-fs

Floyd-Steinberg dithering.
-threshold
Simple threshold conversion.
-value n
Threshold value.
-hilbert
Hilbert curve dithering.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community