Home| base |src.bin|graphic| scaleppm Index

scaleppm

Syntax
scaleppm --help
scaleppm [-smooth] [-wdt width] [-hgt height] [name]
scaleppm [-smooth] [-sf scale] [name]
Synopsis

Scale a Portable PixMap (PPM) image.

Options
--helpprint the help message and exit.
-smoothsmooth the output image.
-wdt widthmake the output image width pixels wide.
-hgt heightmake the output image height pixels tall.
nameinput image filename. If this is omitted the image will be read from standard input.
-sf scaleuse the scale factor scale where 1.0 is the original size.
Description

Scale a Portable PixMap (PPM) image.

The scaled PPM image file is written to standard output.

Examples
scaleppm -wdt 256 -hgt 256 inp.ppm > out.ppm

Scale the PPM file inp.ppm to 256x256 pixels and store it in the file out.ppm.

scaleppm -smooth -wdt 64 -hgt 64 inp.ppm > out.ppm

Scale the PPM file inp.ppm to 64x64 pixels with smoothing and store it in the file out.ppm.