Files
tldr/pages.zh/common/tgatoppm.md

20 lines
573 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# tgatoppm
> 将 TrueVision Targa 文件转换为 Netpbm 图像。
> 更多信息:<https://netpbm.sourceforge.net/doc/tgatoppm.html>。
- 将 TrueVision Targa 文件转换为 PPM 图像:
`tgatoppm {{path/to/file.tga}} > {{path/to/output.ppm}}`
- 将 TGA 头部的信息转储到 `stdout`
`tgatoppm --headerdump {{path/to/file.tga}} > {{path/to/output.ppm}}`
- 将输入图像的透明度通道值写入指定文件:
`tgatoppm --alphaout {{path/to/transparency_file.pgm}} {{path/to/file.tga}} > {{path/to/output.ppm}}`
- 显示版本:
`tgatoppm -version`