1. NAME

tgatoppm - convert TrueVision Targa file into a portable pixmap

2. SYNOPSIS

tgatoppm \fR[--alphaout={alpha-filename,-}] [ --headerdump ] tga-filename

3. DESCRIPTION

Reads a TrueVision Targa file as input. Produces a portable pixmap as output.

4. OPTIONS

  • --alphaout= alpha-filename
        .B tgatoppm creates a PGM (portable graymap) file containing the alpha channel values in the input image. If the input image doesn't contain an alpha channel, the alpha-filename file contains all zero (transparent) alpha values. If you don't specify

R --alphaout ,

tgatoppm does not generate an alpha file, and if the input image has an alpha channel,

tgatoppm simply discards it. If you specify

- as the filename,

tgatoppm writes the alpha output to Standard Output and discards the image. See

R pnmcomp (1) for one way to use the alpha output file.

--headerdump

    Causes the header information to be dumped to stderr.

All options can be abbreviated to their shortest unique prefix.

UGS Should really be in PNM, not PPM.

5. SEE ALSO

R ppmtotga (1),

R pnmcomp (1),

R ppm (5)

6. AUTHOR

Partially based on tga2rast, version 1.0, by Ian J. MacPhedran. Copyright (C) 1989 by Jef Poskanzer.