LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pbmtopgm

converts PBM bitmap to PGM grayscale by averaging pixel regions

TLDR

Convert bitmap to grayscale
$ pbmtopgm [width] [height] [input.pbm] > [output.pgm]
copy

SYNOPSIS

pbmtopgm width height [file]

DESCRIPTION

pbmtopgm converts PBM bitmap to PGM grayscale by averaging pixel regions. Anti-aliases bitmap edges. Part of Netpbm toolkit.

PARAMETERS

width

Averaging width.
height
Averaging height.

INSTALL

sudo apt install netpbm
copy
sudo dnf install netpbm
copy
sudo pacman -S netpbm
copy
sudo apk add netpbm
copy
sudo zypper install netpbm
copy
brew install netpbm
copy
nix profile install nixpkgs#netpbm
copy

SEE ALSO

Copied to clipboard
Kai