CmdID / Commands
pamstretch
Scale up a PAM image by interpolating between pixels. tldr-pages
On several platforms
Scale up a PAM image by an integer factor
pamstretch n path/to/image.pam >path/to/output.pamIdentify
Scale up a PAM image by the specified factors in the horizontal and vertical directions
pamstretch -xscale xn -yscale yn path/to/image.pam >path/to/output.pamIdentify