pamflip

Flip or rotate a PAM or PNM image. More information: <https://netpbm.sourceforge.net/doc/pamflip.html>.

Install

All systems
curl cmd.cat/pamflip.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

Flip or rotate a PAM or PNM image. More information: <https://netpbm.sourceforge.net/doc/pamflip.html>.

  • Rotate the input image counter-clockwise for a specific degree:
    pamflip -rotate90|180|270 path/to/input.pam > path/to/output.pam
  • Flip left for right:
    pamflip -leftright path/to/input.pam > path/to/output.pam
  • Flip top for bottom:
    pamflip -topbottom path/to/input.pam > path/to/output.pam
  • Flip the input image on the main diagonal:
    pamflip -transpose path/to/input.pam > path/to/output.pam

© tl;dr; authors and contributors