Linux Commands Examples

A great documentation place for Linux commands

pnmsplit

split a multi-image portable anymap into multiple single-image files


see also : cat

Synopsis

pnmsplit [pnmfile[ output_file_pattern]]


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
pgmnorm pgmoil pgmslice pnmarith pnmcut pnmdepth pnmenlarge pnmfile \\\
pnminterp pnmnoraw pnmscale pnmsplit pnmtofits pnmtojpeg pnmtopnm pnmtops \\\
0
source
            
pgmnorm pgmoil pgmslice pnmarith pnmcut pnmdepth pnmenlarge pnmfile \\\
pnminterp pnmnoraw pnmscale pnmsplit pnmtofits pnmtojpeg pnmtopnm pnmtops \\\

description

Reads a Netpbm file as input. Copies each image in the input into a separate file, in the same format.

pnmfile is the file specification of the input file, or - to indicate Standard Input. The default is Standard Input.

output_file_pattern tells how to name the output files. It is the file specification of the output file, except that the first occurence of "%d" in it is replaced by the image sequence number in unpadded ASCII decimal, with the sequence starting at 0. If there is no "%d" in the pattern, pnmsplit fails.

The default output file pattern is "image%d".

Note that to do the reverse operation (combining multiple single-image PNM files into a multi-image one), there is no special Netpbm program. Just use cat.


see also

pnm, cat


author

Written by Bryan Henderson

How can this site be more helpful to YOU ?


give  feedback