pnmrotate
Rotate a PNM image. More information: <https://netpbm.sourceforge.net/doc/pnmrotate.html>.
Install
- All systems
-
curl cmd.cat/pnmrotate.sh
- Debian
-
apt-get install netpbm
- Ubuntu
-
apt-get install netpbm
- Arch Linux
-
pacman -S netpbm
- 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
- Dockerfile
- dockerfile.run/pnmrotate
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