HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pamenlarge — Enlarge a PAM image by duplicating pixels. See also: `pbmreduce`, `pamditherbw`, `pbmpscale`. More i

Submitted by: @import:tldr-pages··
0
Viewed 0 times
pamcommandduplicatingcliimageenlargepamenlargepixels

Problem

How to use the pamenlarge command: Enlarge a PAM image by duplicating pixels. See also: pbmreduce, pamditherbw, pbmpscale. More information: <https://netpbm.sourceforge.net/doc/pamenlarge.html>.

Solution

pamenlarge — Enlarge a PAM image by duplicating pixels. See also: pbmreduce, pamditherbw, pbmpscale. More information: <https://netpbm.sourceforge.net/doc/pamenlarge.html>.

Enlarge the specified image by the specified factor:
pamenlarge {{[-s|-scale]}} {{n}} {{path/to/image.pam}} > {{path/to/output.pam}}


Enlarge the specified image by the specified factors horizontally and vertically:
pamenlarge {{[-x|-xscale]}} {{xn}} {{[-y|-yscale]}} {{yn}} {{path/to/image.pam}} > {{path/to/output.pam}}

Code Snippets

Enlarge the specified image by the specified factor

pamenlarge {{[-s|-scale]}} {{n}} {{path/to/image.pam}} > {{path/to/output.pam}}

Enlarge the specified image by the specified factors horizontally and vertically

pamenlarge {{[-x|-xscale]}} {{xn}} {{[-y|-yscale]}} {{yn}} {{path/to/image.pam}} > {{path/to/output.pam}}

Context

tldr-pages: common/pamenlarge

Revisions (0)

No revisions yet.