← 返回命令列表

Linux command

ppmtorgb3 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Split

ppmtorgb3 [input.ppm]

Read from stdin

cat [input.ppm] | ppmtorgb3

说明

ppmtorgb3 reads a PPM (Portable Pixmap) image and writes three PGM (Portable Graymap) images as output: one each for the red, green, and blue channels. Output filenames are derived from the input filename by stripping any extension and appending .red, .grn, and .blu. For example, separating lenna.ppm produces lenna.red, lenna.grn, and lenna.blu. When input comes from stdin, the names default to noname.red, noname.grn, and noname.blu. There are no options specific to ppmtorgb3, but it accepts the common options shared by all programs based on libnetpbm.

FAQ

What is the ppmtorgb3 command used for?

ppmtorgb3 reads a PPM (Portable Pixmap) image and writes three PGM (Portable Graymap) images as output: one each for the red, green, and blue channels. Output filenames are derived from the input filename by stripping any extension and appending .red, .grn, and .blu. For example, separating lenna.ppm produces lenna.red, lenna.grn, and lenna.blu. When input comes from stdin, the names default to noname.red, noname.grn, and noname.blu. There are no options specific to ppmtorgb3, but it accepts the common options shared by all programs based on libnetpbm.

How do I run a basic ppmtorgb3 example?

Run `ppmtorgb3 [input.ppm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more ppmtorgb3 examples?

This page includes 2 examples for ppmtorgb3, plus related commands for nearby Linux tasks.