LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

anytopnm

Convert any image format to PNM (Netpbm)

TLDR

Convert any image to PNM format
$ anytopnm [input.jpg] > [output.pnm]
copy
Convert with verbose output
$ anytopnm -v [input.png] > [output.pnm]
copy

SYNOPSIS

anytopnm [-v] file

DESCRIPTION

anytopnm is a Netpbm utility that converts images from virtually any format to PNM (Portable Any Map) format. It acts as a wrapper, detecting the input format and calling the appropriate converter automatically.PNM is an intermediate format in the Netpbm toolkit, useful for image processing pipelines where a common format simplifies conversions between any two formats.

PARAMETERS

-v

Verbose output showing conversion steps
file
Input image file (uses stdin if omitted, but stdin must be seekable)

CAVEATS

Depends on having the correct format-specific converter installed. Some formats may require additional libraries. Output is always PNM; use other tools to convert to different target formats.

HISTORY

anytopnm is part of the Netpbm package, which evolved from the original PBMPLUS toolkit created by Jef Poskanzer in the late 1980s.

SEE ALSO

pnmtopng(1), pnmtojpeg(1), netpbm(1), convert(1)

Copied to clipboard
Kai