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

20 lines
681 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.

# tifftopnm
> 将 TIFF 图像转换为 PNM 图像。
> 更多信息:<https://netpbm.sourceforge.net/doc/tifftopnm.html>。
- 将 TIFF 文件转换为 PNM 文件:
`tifftopnm {{path/to/input_file.tiff}} > {{path/to/output_file.pnm}}`
- 创建一个包含输入图像 alpha 通道的 PGM 文件:
`tifftopnm -alphaout {{path/to/alpha_file.pgm}} {{path/to/input_file.tiff}} > {{path/to/output_file.pnm}}`
- 尊重输入 TIFF 图像中的 `fillorder` 标签:
`tifftopnm -respectfillorder {{path/to/input_file.tiff}} > {{path/to/output_file.pnm}}`
- 将 TIFF 头信息打印到 `stderr`
`tifftopnm -headerdump {{path/to/input_file.tiff}} > {{path/to/output_file.pnm}}`