snippetbashTip
pamstretch — Scale up a PAM image by interpolating between pixels. See also: `pamstretch-gen`, `pamenlarge`, `pam
Viewed 0 times
scalecommandpambetweencliimagepamstretchinterpolating
Problem
How to use the
pamstretch command: Scale up a PAM image by interpolating between pixels. See also: pamstretch-gen, pamenlarge, pamscale. More information: <https://netpbm.sourceforge.net/doc/pamstretch.html>.Solution
pamstretch — Scale up a PAM image by interpolating between pixels. See also: pamstretch-gen, pamenlarge, pamscale. More information: <https://netpbm.sourceforge.net/doc/pamstretch.html>.Scale up a PAM image by an integer factor:
pamstretch {{n}} {{path/to/image.pam}} > {{path/to/output.pam}}Scale up a PAM image by the specified factors in the horizontal and vertical directions:
pamstretch {{[-x|-xscale]}} {{xn}} {{[-y|-yscale]}} {{yn}} {{path/to/image.pam}} > {{path/to/output.pam}}Code Snippets
Scale up a PAM image by an integer factor
pamstretch {{n}} {{path/to/image.pam}} > {{path/to/output.pam}}Scale up a PAM image by the specified factors in the horizontal and vertical directions
pamstretch {{[-x|-xscale]}} {{xn}} {{[-y|-yscale]}} {{yn}} {{path/to/image.pam}} > {{path/to/output.pam}}Context
tldr-pages: common/pamstretch
Revisions (0)
No revisions yet.