LinuxCommandLibrary

pnmfile

Display information about PNM image files

TLDR

Show image information

$ pnmfile [image.pnm]
copy
Show info for multiple files
$ pnmfile [file1.pnm] [file2.pnm]
copy
Machine-readable output
$ pnmfile -machine [image.pnm]
copy

SYNOPSIS

pnmfile [options] [files]

DESCRIPTION

pnmfile displays information about PNM image files including the format type (PBM, PGM, or PPM), dimensions (width and height), maximum sample value, and whether the file uses ASCII or binary encoding.
The -machine flag outputs in a parseable format suitable for scripting. Part of the Netpbm toolkit; superseded by pamfile.

PARAMETERS

FILES

Input PNM files.
-machine
Machine-readable output format.

CAVEATS

Only reads PNM format files. Part of Netpbm suite.

HISTORY

pnmfile was created as part of Netpbm for image inspection.

SEE ALSO

pamfile(1), file(1), identify(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community