Debian Codegraph @

upstream/debian-trixie/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
50 want the image sequence number in the output file name padded with
51 zeroes. \fBpamsplit\fP adds leading zeroes to the image sequence
52 number to get up to at least that number of characters. This is just
53 the number of characters in the sequence number part of the name. For
54 example, \f(CWpamsplit - outputfile%d.ppm -padname=3\fP would yield
55 output filenames \fBoutputfile000.ppm\fP, \fBoutputfile001.ppm\fP,
56 etc.
57 .PP
58 Note that to do the reverse operation (combining multiple
59 single-image Netpbm files into a multi-image one), there is no special
60 Netpbm program. Just use \fBcat\fP.
61 .PP
62 If you just want to find out basic information about the images in a
63 stream, you can use \fBpamfile\fP on the stream.
64 .PP
65 To extract images from a stream and generate a single stream containing
66 them, use \fBpampick\fP.
67 .PP
68 To run a program on each image in a stream without the hassle of temporary
69 files, use \fBpamexec\fP.
70
71
72 .UN options
73 .SH OPTIONS
74 .PP
75 In addition to the options common to all programs based on libnetpbm
76 (most notably \fB-quiet\fP, see
77 .UR index.html#commonoptions
78 Common Options
79 .UE
80 \&), \fBpamsplit\fP recognizes the following
81 command line option:
82
83
84 .TP
85 \fB-padname=\fP\fIn\fP
86 Specify the width (i.e. number of digits) of the image sequence
87 number field in the filenames of the output files. The image
88 sequence will be padded with leading zeroes to achieve the stated
89 width.
90 .sp
91 The default is no padding (equivalent to \fB-padname=0\fP).
92 .sp
93 The \fB-padname\fP option was new in Netpbm 10.23 (July 2004).
94 Before that, there was never any padding.
95
96
97
98 .UN seealso
99 .SH SEE ALSO
100 .BR "pamfile" (1)\c
101 \&,
102 .BR "pampick" (1)\c
103 \&,
104 .BR "pamexec" (1)\c
105 \&,
106 .BR "pnm" (1)\c
107 \&,
108 .BR "pam" (1)\c
109 \&,
110 \fBcat\fP man page
111 .SH DOCUMENT SOURCE
112 This manual page was generated by the Netpbm tool 'makeman' from HTML
113 source. The master documentation is at
114 .IP
115 .B http://netpbm.sourceforge.net/doc/pamsplit.html
116 .PP