← 返回命令列表

Linux command

ppm 命令

文本

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

常用示例

PPM format overview

ppm

Convert to PPM

anytopnm [image] | ppmtopgm

View PPM info

pamfile [image.ppm]

说明

PPM (Portable Pixmap) is the color image format in the Netpbm family. Each pixel is stored as an RGB triplet, with values ranging from 0 to a specified maximum. The format exists in two variants: plain (ASCII text, human-readable) and raw (binary, compact). PPM serves as the common interchange format for color images in Netpbm pipelines. Numerous tools convert to and from PPM, allowing image processing by chaining simple single-purpose utilities. PGM handles grayscale and PBM handles bitmaps in the same family.

FAQ

What is the ppm command used for?

PPM (Portable Pixmap) is the color image format in the Netpbm family. Each pixel is stored as an RGB triplet, with values ranging from 0 to a specified maximum. The format exists in two variants: plain (ASCII text, human-readable) and raw (binary, compact). PPM serves as the common interchange format for color images in Netpbm pipelines. Numerous tools convert to and from PPM, allowing image processing by chaining simple single-purpose utilities. PGM handles grayscale and PBM handles bitmaps in the same family.

How do I run a basic ppm example?

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

Where can I find more ppm examples?

This page includes 3 examples for ppm, plus related commands for nearby Linux tasks.