pamenlarge
enlarges a Netpbm image N times by duplicating pixels
TLDR
SYNOPSIS
pamenlarge [-scale=N] [-xscale=N] [-yscale=N] [pamfile]pamenlarge N [pamfile]
DESCRIPTION
pamenlarge reads a Netpbm image, replicates its pixels N times, and produces an enlarged Netpbm image. Each pixel becomes an N x N block of identical pixels.This produces a blocky/pixelated look, useful for pixel art or simple scaling. For smooth scaling, use pamscale instead. For scale factors of 3 or more, applying pnmsmooth afterward can reduce pixelation.For PBM images, optimized algorithms exist for scale factors up to 10. Running multiple passes with smaller factors can be faster than a single large factor.
PARAMETERS
-scale=N
Scale factor applied both horizontally and vertically. Cannot be combined with -xscale or -yscale.-xscale=N
Horizontal scale factor. If -yscale is not given, vertical scaling defaults to 1.-yscale=N
Vertical scale factor. If -xscale is not given, horizontal scaling defaults to 1.N
Positional scale factor (legacy syntax). Equivalent to -scale=N.
EXAMPLE
pamenlarge 2 small.ppm > large.ppm
# Triple horizontal, double vertical
pamenlarge -xscale=3 -yscale=2 input.ppm > output.ppm
COMPARISON
pamscale - Smooth scaling, any factor
CAVEATS
Integer factors only. No interpolation. Large factors create big files quickly. The -scale, -xscale, and -yscale options were added in Netpbm 10.86 (March 2019); older versions only support the positional argument syntax.
HISTORY
pamenlarge was added to Netpbm in version 10.25 (October 2004) as a replacement for the older pnmenlarge.
SEE ALSO
pamscale(1), pnmenlarge(1), pamstretch(1)
