1\ 2.\" This man page was generated by the Netpbm tool 'makeman' from HTML source. 3.\" Do not hand-hack it! If you have bug fixes or improvements, please find 4.\" the corresponding HTML page on the Netpbm website, generate a patch 5.\" against that, and send it to the Netpbm maintainer. 6.TH "Pamsplit User Manual" 0 "11 August 2011" "netpbm documentation" 7 8.SH NAME 9 10pamsplit - split a multi-image Netpbm file into single-image files 11 12.UN synopsis 13.SH SYNOPSIS 14 15\fBpamsplit\fP 16 17[\fInetpbmfile\fP 18 19[\fI output_file_pattern\fP]] 20 21[\fB-padname=\fP\fIn\fP] 22.PP 23Minimum unique abbreviation of option is acceptable. You may use double 24hyphens instead of single hyphen to denote options. You may use white 25space in place of the equals sign to separate an option name from its value. 26 27 28.UN description 29.SH DESCRIPTION 30.PP 31This program is part of 32.BR "Netpbm" (1)\c 33\&. 34.PP 35\fBpamsplit\fP reads a PNM or PAM stream as input. It copies each image 36in the input into a separate file, in the same format. 37.PP 38\fInetpbmfile\fP is the file name of the input file, or 39\fB-\fP to indicate Standard Input. The default is Standard Input. 40.PP 41\fIoutput_file_pattern\fP tells how to name the output files. It 42is the file name of the output file, except that the first 43occurrence of "%d" in it is replaced by the image sequence 44number in unpadded ASCII decimal, with the sequence starting at 0. If 45there is no "%d" in the pattern, \fBpamsplit\fP fails. 46.PP 47The default output file pattern is "image%d". 48.PP 49The \fB-padname\fP option specifies to how many characters you 50want the image sequence number in the output file name padded with 51zeroes. \fBpamsplit\fP adds leading zeroes to the image sequence 52number to get up to at least that number of characters. This is just 53the number of characters in the sequence number part of the name. For 54example, \f(CWpamsplit - outputfile%d.ppm -padname=3\fP would yield 55output filenames \fBoutputfile000.ppm\fP, \fBoutputfile001.ppm\fP, 56etc. 57.PP 58The default is no padding (equivalent to \fB-padname=0\fP). 59.PP 60The \fB-padname\fP option was new in Netpbm 10.23 (July 2004). 61Before that, there was never any padding. 62.PP 63Note that to do the reverse operation (combining multiple 64single-image Netpbm files into a multi-image one), there is no special 65Netpbm program. Just use \fBcat\fP. 66.PP 67If you just want to find out basic information about the images in a 68stream, you can use \fBpamfile\fP on the stream. 69.PP 70To extract images from a stream and generate a single stream containing 71them, use \fBpampick\fP. 72.PP 73To run a program on each image in a stream without the hassle of temporary 74files, use \fBpamexec\fP. 75 76 77.UN seealso 78.SH SEE ALSO 79.BR "pamfile" (1)\c 80\&, 81.BR "pampick" (1)\c 82\&, 83.BR "pamexec" (1)\c 84\&, 85.BR "pnm" (5)\c 86\&, 87.BR "pam" (5)\c 88\&, 89\fBcat\fP man page 90.SH DOCUMENT SOURCE 91This manual page was generated by the Netpbm tool 'makeman' from HTML 92source. The master documentation is at 93.IP 94.B http://netpbm.sourceforge.net/doc/pamsplit.html 95.PP