LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pnmtopnm

Copy and normalize PNM image format

TLDR

Copy a PNM image normalizing to raw format
$ pnmtopnm [input.pnm] > [output.pnm]
copy
Convert a PNM image to plain (ASCII) format
$ pnmtopnm -plain [input.pnm] > [output.pnm]
copy

SYNOPSIS

pnmtopnm [-plain] [pnmfile]

DESCRIPTION

pnmtopnm copies a PNM image to standard output. The output has the same PNM format (PBM, PGM, or PPM) and maxval as the input. Though similar to `cat`, it allows conversion between the plain (ASCII) and raw (binary) subformats of PNM. Use -plain to produce ASCII output; omit it to produce raw (binary) output.Since Netpbm 10.27, pnmtopnm is simply an alternate name for pamtopnm. Part of the Netpbm toolkit.

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

HISTORY

pnmtopnm was introduced in Netpbm 10.23 (July 2004), obsoleting pnmtoplainpnm. In Netpbm 10.27 (March 2005) it became an alias for pamtopnm.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid