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

ppmtoppmx

Syntax
ppmtoppmx --help
ppmtoppmx [-name iname] [name]
ppmtoppmx -alpha alpha [-name iname] [name]
ppmtoppmx -nz [-name iname] [name]
Synopsis

Convert a Portable PixMap (PPM) image to an extended Portable PixMap (PPMX) image.

Options
--helpprint the help message and exit.
-name inameset the image name in the output image to iname.
-alpha alphaset alpha channel for all pixels to the value given by alpha. The value can be given as a decimal, percentage or hexadecimal.
-nzset alpha channel to full on (0xff) for any non-zero value pixel in the input image.
nameinput image filename. If this is omitted the image will be read from standard input.
Description

Convert a Portable PixMap (PPM) image to an extended Portable PixMap (PPMX) image.

The PPMX image file is written to standard output.

Extended Portable PixMap files are an enhanced form of PPM files that include an extra alpha channel mask.

Examples
ppmtoppmx -name "test" inp.ppm > out.ppmx

Convert PPM file inp.ppm to the PPMX file out.ppmx. Set the name of the image to "test".

ppmtoppmx -nz inp.ppm > out.ppmx

Convert PPM file inp.ppm to the PPMX file out.ppmx. The alpha channel is set to full on for any non-zero pixels in the input image.