LinuxCommandLibrary

pnmscalefixed

Scale images using fixed-point arithmetic

TLDR

Scale image using fixed-point math

$ pnmscalefixed [2.0] [input.pnm] > [output.pnm]
copy
Scale to specific dimensions
$ pnmscalefixed -width [800] -height [600] [input.pnm] > [output.pnm]
copy

SYNOPSIS

pnmscalefixed [options] scale [file]

DESCRIPTION

pnmscalefixed scales PNM images using fixed-point integer arithmetic instead of floating-point math. This makes it faster than pamscale on systems without hardware floating-point support, at the cost of slightly reduced accuracy.
The tool accepts a scale factor or target dimensions via -width and -height. For most modern systems, pamscale is preferred for better quality. Part of the Netpbm toolkit.

PARAMETERS

scale

Scale factor.
-width n
Target width.
-height n
Target height.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community