LinuxCommandLibrary

pnmrotate

Rotate PNM images by any angle

TLDR

Rotate image

$ pnmrotate [45] [input.pnm] > [output.pnm]
copy
Rotate with background color
$ pnmrotate -background [white] [30] [input.pnm] > [output.pnm]
copy
Rotate without anti-aliasing
$ pnmrotate -noantialias [90] [input.pnm] > [output.pnm]
copy

SYNOPSIS

pnmrotate [options] angle [file]

DESCRIPTION

pnmrotate rotates PNM images by an arbitrary angle specified in degrees. The output image is enlarged as needed to contain the full rotated result, with new areas filled by the background color.
Anti-aliasing is applied by default for smooth edges; use -noantialias to disable it for faster processing or when working with binary images. The -background option sets the fill color for areas outside the rotated image. Part of the Netpbm toolkit.

PARAMETERS

angle

Rotation angle in degrees.
-background color
Background fill color.
-noantialias
Disable anti-aliasing.

SEE ALSO

pnmflip(1), pnmshear(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community