LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pamtopnm

converts PAM images to PNM format

TLDR

Convert PAM to PNM format
$ pamtopnm [input.pam] > [output.pnm]
copy
Convert, overriding tuple type check with -assume
$ pamtopnm -assume [input.pam] > [output.pnm]
copy
Convert silently without informational messages
$ pamtopnm -quiet [input.pam] > [output.pnm]
copy

SYNOPSIS

pamtopnm [-assume] [-quiet] [file]

DESCRIPTION

pamtopnm reads a PAM image as input and produces an equivalent PBM, PGM, or PPM (i.e. PNM) image as output. The output format is chosen automatically based on the input: BLACKANDWHITE becomes PBM, GRAYSCALE becomes PGM, and RGB becomes PPM.If the input PAM does not have an appropriate tuple type (BLACKANDWHITE, GRAYSCALE, or RGB) and depth, pamtopnm fails unless -assume is specified. To force conversion of images with extra channels, run the input through pamchannel first to select the desired channels.Part of the Netpbm toolkit.

PARAMETERS

-assume

Override the tuple type requirement. Asserts that the tuples contain valid PBM, PGM, or PPM data regardless of the PAM tuple type. The depth must still conform to the target format.
-quiet
Suppress informational messages to standard error.

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

pamtopam(1), netpbm(1)

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