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

21 lines
662 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.

# pamtopng
> 将 PAM 图像转换为 PNG。
> 另见:`pnmtopng``pngtopam`。
> 更多信息:<https://netpbm.sourceforge.net/doc/pamtopng.html>。
- 将指定的 PAM 图像转换为 PNG
`pamtopng {{path/to/image.pam}} > {{path/to/output.png}}`
- 将指定颜色标记为输出图像中的透明色:
`pamtopng -transparent {{color}} {{path/to/image.pam}} > {{path/to/output.png}}`
- 将指定文件中的文本作为 tEXt 块包含在输出中:
`pamtopng -text {{path/to/file.txt}} {{path/to/image.pam}} > {{path/to/output.png}}`
- 使输出文件以 Adam7 格式交错:
`pamtopng -interlace {{path/to/image.pam}} > {{path/to/output.png}}`