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)

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

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)

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