← 返回命令列表

Linux command

pnmtopnm 命令

文本

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Copy a PNM image normalizing to raw format

pnmtopnm [input.pnm] > [output.pnm]

Convert a PNM image to plain (ASCII) format

pnmtopnm -plain [input.pnm] > [output.pnm]

说明

pnmtopnm copies a PNM image to standard output. The output has the same PNM format (PBM, PGM, or PPM) and maxval as the input. Though similar to `cat`, it allows conversion between the plain (ASCII) and raw (binary) subformats of PNM. Use -plain to produce ASCII output; omit it to produce raw (binary) output. Since Netpbm 10.27, pnmtopnm is simply an alternate name for pamtopnm. Part of the Netpbm toolkit.

FAQ

What is the pnmtopnm command used for?

pnmtopnm copies a PNM image to standard output. The output has the same PNM format (PBM, PGM, or PPM) and maxval as the input. Though similar to `cat`, it allows conversion between the plain (ASCII) and raw (binary) subformats of PNM. Use -plain to produce ASCII output; omit it to produce raw (binary) output. Since Netpbm 10.27, pnmtopnm is simply an alternate name for pamtopnm. Part of the Netpbm toolkit.

How do I run a basic pnmtopnm example?

Run `pnmtopnm [input.pnm] > [output.pnm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more pnmtopnm examples?

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