# phpman > info > tgatoppm

[tgatoppm(1)](https://www.chedong.com/phpMan.php/man/tgatoppm/1/markdown)                 General Commands Manual                [tgatoppm(1)](https://www.chedong.com/phpMan.php/man/tgatoppm/1/markdown)

NAME
       tgatoppm - convert TrueVision Targa file into a portable pixmap

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

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

OPTIONS
       --alphaout=alpha-filename
              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  con-
              tains all zero (transparent) alpha values.  If you don't specify
              --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 out-
              put to Standard Output and discards the image.

              See [pnmcomp(1)](https://www.chedong.com/phpMan.php/man/pnmcomp/1/markdown) 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.

BUGS
       Should really be in PNM, not PPM.

SEE ALSO
       [ppmtotga(1)](https://www.chedong.com/phpMan.php/man/ppmtotga/1/markdown), [pnmcomp(1)](https://www.chedong.com/phpMan.php/man/pnmcomp/1/markdown), [ppm(5)](https://www.chedong.com/phpMan.php/man/ppm/5/markdown)

AUTHOR
       Partially based on tga2rast, version 1.0, by Ian J. MacPhedran.

       Copyright (C) 1989 by Jef Poskanzer.

                                 02 April 2000                     [tgatoppm(1)](https://www.chedong.com/phpMan.php/man/tgatoppm/1/markdown)
