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

16 lines
525 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.

# rletopnm
> 将犹他光栅工具的RLE图像文件转换为PNM文件。
> 更多信息:<https://netpbm.sourceforge.net/doc/rletopnm.html>。
- 将RLE图像转换为PNM文件
`rletopnm {{path/to/input.rle}} > {{path/to/output.pnm}}`
- 创建包含RLE文件的alpha通道的PGM图像
`rletopnm -alphaout {{path/to/alpha_file.pgm}} {{path/to/input.rle}} > {{path/to/output.pnm}}`
- 以详细模式操作并将RLE头的内容打印到`stdout`
`rletopnm -verbose {{path/to/input.rle}} > {{path/to/output.pnm}}`