pnmenlarge
Enlarge PNM images by pixel replication
TLDR
Enlarge image 2x
$ pnmenlarge [2] [input.pnm] > [output.pnm]
Enlarge image 4x$ pnmenlarge [4] [input.pnm] > [output.pnm]
SYNOPSIS
pnmenlarge factor [file]
DESCRIPTION
pnmenlarge enlarges PNM images by replicating pixels. Simple nearest-neighbor scaling without interpolation. Part of Netpbm toolkit. For smoother scaling, use pamscale.
PARAMETERS
factor
Enlargement factor (integer).
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