pnmsplit
Split multi-image PNM files into separate files
TLDR
Split multi-image PNM file
$ pnmsplit [input.pnm] [output%d.pnm]
Split with custom naming$ pnmsplit [input.pnm] [frame_%03d.pnm]
SYNOPSIS
pnmsplit [options] input output
DESCRIPTION
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.
PARAMETERS
INPUT
Multi-image PNM file.OUTPUT
Output filename pattern with %d.-padname N
Zero-padding width for numbers.
CAVEATS
Requires %d in output name. Part of Netpbm suite.
HISTORY
pnmsplit was created as part of Netpbm for multi-image file handling.
