pnmrotate

Rotate a PNM image. More information: <https://netpbm.sourceforge.net/doc/pnmrotate.html>.

Install

All systems
curl cmd.cat/pnmrotate.sh
Debian Debian
apt-get install netpbm
Ubuntu
apt-get install netpbm
Arch Arch Linux
pacman -S netpbm
image/svg+xml Kali Linux
apt-get install netpbm
CentOS
yum install netpbm-progs
Fedora
dnf install netpbm-progs
Windows (WSL2)
sudo apt-get update sudo apt-get install netpbm
OS X
brew install netpbm
Raspbian
apt-get install netpbm

Rotate a PNM image. More information: <https://netpbm.sourceforge.net/doc/pnmrotate.html>.

  • Rotate a PNM image by some angle (measured in degrees, counter-clockwise):
    pnmrotate angle path/to/input.pnm > path/to/output.pnm
  • Specify the background color exposed by rotating the input image:
    pnmrotate -background color angle path/to/input.pnm > path/to/output.pnm
  • Disable anti-aliasing, improving performance but decreasing quality:
    pnmrotate -noantialias angle path/to/input.pnm > path/to/output.pnm

© tl;dr; authors and contributors