1. Tech

Your suggestion is on its way!

An email with a link to:

http://linux.about.com/library/cmd/blcmdl1_tgatoppm.htm

was emailed to:

Thanks for sharing About.com with others!

Linux / Unix Command: tgatoppm
Command Library

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 contains 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 output to Standard Output and discards the image.

See 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. Should really be in PNM, not PPM.

 

SEE ALSO

ppmtotga(1), pnmcomp(1), ppm(5)  

Important: Use the man command (% man) to see how a command is used on your particular computer.

>> Linux/Unix Command Library

>> Shell Command Library

You can opt-out at any time. Please refer to our privacy policy for contact information.

Discuss in my forum

©2014 About.com. All rights reserved.