LinuxCommandLibrary

netpbm

toolkit for image manipulation

TLDR

Convert JPEG to PPM

$ jpegtopnm [image.jpg] > [image.ppm]
copy
Convert PNG to PPM
$ pngtopam [image.png] > [image.ppm]
copy
Convert PPM to JPEG
$ pnmtojpeg [image.ppm] > [image.jpg]
copy
Resize image
$ pamscale -width [800] [input.ppm] > [output.ppm]
copy
Flip image
$ pamflip -lr [input.ppm] > [output.ppm]
copy

SYNOPSIS

netpbm [tool] [options] [files]

DESCRIPTION

netpbm is a toolkit for image manipulation. It includes many utilities for format conversion.
The tools work with portable bitmap formats. Pipeline-based image processing.

PARAMETERS

TOOL

Specific netpbm utility.
jpegtopnm
Convert JPEG to portable format.
pngtopam
Convert PNG to PAM.
pamscale
Scale images.
pamflip
Flip/rotate images.
--help
Display help information.

CAVEATS

Collection of tools. PNM/PAM intermediate format. Command-line based.

HISTORY

Netpbm evolved from PBMPLUS, a pioneering image manipulation package created by Jef Poskanzer in 1988.

SEE ALSO

imagemagick(1), convert(1), gimp(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community