commands.sh

tgatoppm

all

Convert a TrueVision Targa file to a Netpbm image.

More info →

Options (3)

-hboolean

Dump information from the TGA header to `stdout`

Example: tgatoppm {{[-h|-headerdump]}} {{path/to/file.tga}} > {{path/to/output.ppm}}
-aboolean

Write the transparency channel values of the input image to the specified file

Example: tgatoppm {{[-a|-alphaout]}} {{path/to/transparency_file.pgm}} {{path/to/file.tga}} > {{path/to/output.ppm}}
-vboolean

Display version

Example: tgatoppm {{[-v|-version]}}

Examples (4)

Convert a TrueVision Targa file to a PPM image

tgatoppm path/to/file.tga > path/to/output.ppm

Dump information from the TGA header to `stdout`

tgatoppm [-h|-headerdump] path/to/file.tga > path/to/output.ppm

Write the transparency channel values of the input image to the specified file

tgatoppm [-a|-alphaout] path/to/transparency_file.pgm path/to/file.tga > path/to/output.ppm

Display version

tgatoppm [-v|-version]
made by @shridhargupta | data from tldr-pages