snippetbashTip
tgatoppm — Convert a TrueVision Targa file to a Netpbm image. More information: <https://netpbm.sourceforge.net
Viewed 0 times
commandtargaconvertclifiletgatoppmnetpbmtruevision
Problem
How to use the
tgatoppm command: Convert a TrueVision Targa file to a Netpbm image. More information: <https://netpbm.sourceforge.net/doc/tgatoppm.html>.Solution
tgatoppm — Convert a TrueVision Targa file to a Netpbm image. More information: <https://netpbm.sourceforge.net/doc/tgatoppm.html>.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]}}Code Snippets
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]}}Context
tldr-pages: common/tgatoppm
Revisions (0)
No revisions yet.