2023-11-07 14:15:14 +01:00
|
|
|
# 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`:
|
|
|
|
|
2025-04-01 06:42:14 +03:00
|
|
|
`tgatoppm {{[-h|-headerdump]}} {{path/to/file.tga}} > {{path/to/output.ppm}}`
|
2023-11-07 14:15:14 +01:00
|
|
|
|
|
|
|
- Write the transparency channel values of the input image to the specified file:
|
|
|
|
|
2025-04-01 06:42:14 +03:00
|
|
|
`tgatoppm {{[-a|-alphaout]}} {{path/to/transparency_file.pgm}} {{path/to/file.tga}} > {{path/to/output.ppm}}`
|
2023-11-07 14:15:14 +01:00
|
|
|
|
|
|
|
- Display version:
|
|
|
|
|
2025-04-01 06:42:14 +03:00
|
|
|
`tgatoppm {{[-v|-version]}}`
|