← 返回命令列表

Linux command

pnmsplit 命令

文本

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

常用示例

Split multi-image PNM file

pnmsplit [input.pnm] [output%d.pnm]

Split with custom naming

pnmsplit [input.pnm] [frame_%03d.pnm]

说明

pnmsplit splits a multi-image PNM stream into individual files. PNM files can contain multiple images concatenated together, and this tool extracts each one into a separate output file. The output filename pattern must contain a %d format specifier (or variant like %03d) which is replaced with the image sequence number starting from 0. The -padname option controls zero-padding width for the numbering. This is useful for processing animation frames or batch image sequences. Part of the Netpbm toolkit.

参数

-padname _N_
Zero-padding width for numbers.

FAQ

What is the pnmsplit command used for?

pnmsplit splits a multi-image PNM stream into individual files. PNM files can contain multiple images concatenated together, and this tool extracts each one into a separate output file. The output filename pattern must contain a %d format specifier (or variant like %03d) which is replaced with the image sequence number starting from 0. The -padname option controls zero-padding width for the numbering. This is useful for processing animation frames or batch image sequences. Part of the Netpbm toolkit.

How do I run a basic pnmsplit example?

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

What does -padname _N_ do in pnmsplit?

Zero-padding width for numbers.