Debian Codegraph @

upstream/debian-unstable/man1/pamsplit.1

raw
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" 1 "11 August 2011" "netpbm documentation"
7
8 .SH NAME
9
10 pamsplit - 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
23 Minimum unique abbreviation of option is acceptable. You may use double
24 hyphens instead of single hyphen to denote options. You may use white
25 space in place of the equals sign to separate an option name from its value.
26
27
28 .UN description
29 .SH DESCRIPTION
30 .PP
31 This 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
36 in 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
42 is the file name of the output file, except that the first
43 occurrence of "%d" in it is replaced by the image sequence
44 number in unpadded ASCII decimal, with the sequence starting at 0. If
45 there is no "%d" in the pattern, \fBpamsplit\fP fails.
46 .PP
47 The default output file pattern is "image%d".
48 .PP
49 The \fB-padname\fP option specifies how many characters you want the image
50 sequence number in the output file name padded with zeroes. \fBpamsplit\fP
51 adds leading zeroes to the image sequence number as needed to get up to at
52 least that number of characters. This is just the number of characters in the
53 sequence number part of the name. For example, \f(CWpamsplit -
54 outputfile%d.ppm -padname=3\fP would yield output
55 filenames \fBoutputfile000.ppm\fP, \fBoutputfile001.ppm\fP, etc.
56 .PP
57 Note that to do the reverse operation (combining multiple
58 single-image Netpbm files into a multi-image one), there is no special
59 Netpbm program. Just use \fBcat\fP.
60 .PP
61 If you just want to find out basic information about the images in a
62 stream, you can use \fBpamfile\fP on the stream.
63 .PP
64 To extract images from a stream and generate a single stream containing
65 them, use \fBpampick\fP.
66 .PP
67 To run a program on each image in a stream without the hassle of temporary
68 files, use \fBpamexec\fP.
69
70
71 .UN options
72 .SH OPTIONS
73 .PP
74 In addition to the options common to all programs based on libnetpbm
75 (most notably \fB-quiet\fP, see
76 .UR index.html#commonoptions
77 Common Options
78 .UE
79 \&), \fBpamsplit\fP recognizes the following
80 command line option:
81
82
83 .TP
84 \fB-padname=\fP\fIn\fP
85 Specify the width (i.e. number of digits) of the image sequence
86 number field in the filenames of the output files. The image
87 sequence will be padded with leading zeroes to achieve the stated
88 width.
89 .sp
90 The default is no padding (equivalent to \fB-padname=0\fP).
91 .sp
92 The \fB-padname\fP option was new in Netpbm 10.23 (July 2004).
93 Before that, there was never any padding.
94
95
96
97 .UN history
98 .SH HISTORY
99 .PP
100 \fBpamsplit\fP was new in Netpbm 9.5 (July 2000), as \fBpnmsplit\fP. In
101 Netpbm 10.31 (December 2005), it gained the ability to split PAM files and was
102 renamed.
103
104 .UN seealso
105 .SH SEE ALSO
106 .BR "pamfile" (1)\c
107 \&,
108 .BR "pampick" (1)\c
109 \&,
110 .BR "pamexec" (1)\c
111 \&,
112 .BR "pnm" (1)\c
113 \&,
114 .BR "pam" (1)\c
115 \&,
116 \fBcat\fP man page
117 .SH DOCUMENT SOURCE
118 This manual page was generated by the Netpbm tool 'makeman' from HTML
119 source. The master documentation is at
120 .IP
121 .B http://netpbm.sourceforge.net/doc/pamsplit.html
122 .PP