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.

SEE ALSO

pamtopam(1), netpbm(1)

Copied to clipboard
Kai