LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

tgatoppm

Convert TGA images to PPM format

TLDR

Convert TGA to PPM
$ tgatoppm [input.tga] > [output.ppm]
copy
Extract alpha channel
$ tgatoppm --alphaout=[alpha.pgm] [input.tga] > [output.ppm]
copy

SYNOPSIS

tgatoppm [options] [file]

DESCRIPTION

tgatoppm converts TGA (Targa) images to PPM format. Handles compressed and uncompressed TGA files. Part of Netpbm toolkit.

PARAMETERS

--alphaout file

Write alpha channel to file.

INSTALL

sudo apt install netpbm
copy
sudo dnf install netpbm
copy
sudo pacman -S netpbm
copy
sudo apk add netpbm
copy
sudo zypper install netpbm
copy
brew install netpbm
copy
nix profile install nixpkgs#netpbm
copy

SEE ALSO

Copied to clipboard
Kai