.TL Pamsplit User Manual .SH 1 pamsplit .LP Updated: 23 October 2005 .br Table Of Contents .SH 2 NAME .LP pamsplit - split a multi-image PNM/PAM file into single-image files .SH 2 SYNOPSIS .LP \fBpamsplit\fR [\fInetpbmfile\fR[\fI output_file_pattern\fR]] [\fB-padname=\fR\fIn\fR] .LP Minimum unique abbreviation of option is acceptable. You may use double hyphens instead of single hyphen to denote options. You may use white space in place of the equals sign to separate an option name from its value. .SH 2 DESCRIPTION .LP .LP This program is part of Netpbm. .LP \fBpamsplit\fR reads a PNM or PAM stream as input. It copies each image in the input into a separate file, in the same format. .LP \fInetpbmfile\fR is the file specification of the input file, or \fB-\fR to indicate Standard Input. The default is Standard Input. .LP \fIoutput_file_pattern\fR 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, \fBpamsplit\fR fails. .LP The default output file pattern is "image%d". .LP The \fB-padname\fR option specifies to how many characters you want the image sequence number in the output file name padded with zeroes. \fBpamsplit\fR adds leading zeroes to the image sequence number to get up to at least that number of characters. This is just the number of characters in the sequence number part of the name. For example, \fBpamsplit - outputfile%d.ppm -padname=3\fR would yield output filenames \fBoutputfile000.ppm\fR, \fBoutputfile001.ppm\fR, etc. .LP The default is no padding (equivalent to \fB-padname=0\fR. .LP The \fB-padname\fR option was new in Netpbm 10.23 (July 2004). Before that, there was never any padding. .LP Note that to do the reverse operation (combining multiple single-image Netpbm files into a multi-image one), there is no special Netpbm program. Just use \fBcat\fR. .LP If you just want to find out basic information about the images in a stream, you can use \fBpamfile\fR on the stream. .LP To extract images from a stream and generate a single stream containing them, use \fBpampick\fR. .SH 2 SEE ALSO .LP \fBpamfile\fR, \fBpampick\fR, \fBpnm\fR, \fBpam\fR, \fBcat\fR man page .br \l'5i' .SH 2 Table Of Contents .LP .IP \(bu NAME .IP \(bu SYNOPSIS .IP \(bu DESCRIPTION .IP \(bu SEE ALSO .LP