pnmshear

Shear PNM images horizontally

TLDR

Shear image horizontally
$ pnmshear [30] [input.pnm] > [output.pnm]
Shear with background color
$ pnmshear -background [white] [45] [input.pnm] > [output.pnm]

SYNOPSIS

pnmshear [options] angle [file]

DESCRIPTION

pnmshear applies a horizontal shear transformation to PNM images, sliding each row by an amount proportional to its distance from the center. The result is a parallelogram-shaped image where the shear angle is specified in degrees.Anti-aliasing is applied by default for smooth results. The -background option sets the fill color for newly exposed areas, and -noantialias disables smoothing. Part of the Netpbm toolkit.

PARAMETERS

angle

Shear angle in degrees.
-background color
Fill color for new areas.
-noantialias
Disable anti-aliasing.

INSTALL

sudo apt install netpbm
sudo dnf install netpbm
sudo pacman -S netpbm
sudo apk add netpbm
sudo zypper install netpbm
brew install netpbm
nix profile install nixpkgs#netpbm

SEE ALSO

pnmrotate(1), pnmflip(1)