LinuxCommandLibrary

tgatoppm

Convert a TrueVision Targa file to a Netpbm image.

TLDR

Convert a TrueVision Targa file to a PPM image

$ tgatoppm [path/to/file.tga] > [path/to/output.ppm]
copy


Dump information from the TGA header to stdout
$ tgatoppm --headerdump [path/to/file.tga] > [path/to/output.ppm]
copy


Write the transparency channel values of the input image to the specified file
$ tgatoppm --alphaout [path/to/transparency_file.pgm] [path/to/file.tga] > [path/to/output.ppm]
copy


Display version
$ tgatoppm -version
copy

Copied to clipboard