LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pnmrotate

Rotate PNM images by an arbitrary 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 [30] [input.pnm] > [output.pnm]
copy

SYNOPSIS

pnmrotate [options] angle [file]

DESCRIPTION

pnmrotate rotates PNM images by an arbitrary angle specified in degrees (between -90 and 90, measured counter-clockwise). 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. For rotations that are multiples of 90 degrees, use pamflip instead. Part of the Netpbm toolkit.

PARAMETERS

angle

Rotation angle in degrees (must be between -90 and 90). Measured counter-clockwise.
-background color
Background fill color. By default, pnmrotate selects what appears to be the background color of the original image.
-noantialias
Disable anti-aliasing. Simply moves pixels instead of synthesizing output pixels from multiple input pixels.

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

pamflip(1), pnmflip(1), pnmshear(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