LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pnmtojpeg

Convert PNM images to JPEG format

TLDR

Convert PNM to JPEG
$ pnmtojpeg [input.pnm] > [output.jpg]
copy
Convert with quality
$ pnmtojpeg -quality [85] [input.pnm] > [output.jpg]
copy
Create progressive JPEG
$ pnmtojpeg -progressive [input.pnm] > [output.jpg]
copy
Optimize Huffman tables
$ pnmtojpeg -optimize [input.pnm] > [output.jpg]
copy

SYNOPSIS

pnmtojpeg [options] [file]

DESCRIPTION

pnmtojpeg converts PNM (PBM, PGM, PPM) images to JPEG/JFIF format. The -quality option controls the compression-to-quality tradeoff, with higher values producing larger files with better image quality.The -progressive option creates progressive JPEGs that render in increasing detail during loading. The -optimize flag reduces file size by computing optimal Huffman coding tables. The -grayscale option forces single-channel output even for color inputs. Part of the Netpbm toolkit.

PARAMETERS

-quality n

Quality (0-100, default 75).
-progressive
Create progressive JPEG.
-optimize
Optimize Huffman tables.
-grayscale
Force grayscale output.
-baseline
Force baseline JPEG.

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

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