1Pamsplit User Manual(0)                                Pamsplit User Manual(0)
2
3
4

NAME

6       pamsplit - split a multi-image Netpbm file into single-image files
7
8

SYNOPSIS

10       pamsplit
11
12       [netpbmfile
13
14       [ output_file_pattern]]
15
16       [-padname=n]
17
18       Minimum  unique abbreviation of option is acceptable.  You may use dou‐
19       ble hyphens instead of single hyphen to denote options.   You  may  use
20       white space in place of the equals sign to separate an option name from
21       its value.
22
23
24

DESCRIPTION

26       This program is part of Netpbm(1).
27
28       pamsplit reads a PNM or PAM stream as input.  It copies each  image  in
29       the input into a separate file, in the same format.
30
31       netpbmfile  is  the file name of the input file, or - to indicate Stan‐
32       dard Input.  The default is Standard Input.
33
34       output_file_pattern tells how to name the output files.  It is the file
35       name of the output file, except that the first occurrence of "%d" in it
36       is replaced by the image sequence number  in  unpadded  ASCII  decimal,
37       with  the  sequence starting at 0.  If there is no "%d" in the pattern,
38       pamsplit fails.
39
40       The default output file pattern is "image%d".
41
42       The -padname option specifies how many characters you  want  the  image
43       sequence  number  in the output file name padded with zeroes.  pamsplit
44       adds leading zeroes to the image sequence number to get up to at  least
45       that  number  of  characters.  This is just the number of characters in
46       the sequence number part of the name.  For example, pamsplit -  output‐
47       file%d.ppm  -padname=3  would yield output filenames outputfile000.ppm,
48       outputfile001.ppm, etc.
49
50       Note that to do the reverse operation (combining multiple  single-image
51       Netpbm  files  into a multi-image one), there is no special Netpbm pro‐
52       gram.  Just use cat.
53
54       If you just want to find out basic information about the  images  in  a
55       stream, you can use pamfile on the stream.
56
57       To extract images from a stream and generate a single stream containing
58       them, use pampick.
59
60       To run a program on each image in a stream without the hassle of tempo‐
61       rary files, use pamexec.
62
63
64

OPTIONS

66       In  addition  to  the options common to all programs based on libnetpbm
67       (most notably -quiet, see
68        Common Options ⟨index.html#commonoptions⟩ ), pamsplit  recognizes  the
69       following command line option:
70
71
72
73       -padname=n
74              Specify  the width (i.e. number of digits) of the image sequence
75              number field in the filenames of the output  files.   The  image
76              sequence  will  be  padded  with  leading  zeroes to achieve the
77              stated width.
78
79              The default is no padding (equivalent to -padname=0).
80
81              The -padname option was new in Netpbm 10.23 (July 2004).  Before
82              that, there was never any padding.
83
84
85
86

SEE ALSO

88       pamfile(1), pampick(1), pamexec(1), pnm(1), pam(1), cat man page
89

DOCUMENT SOURCE

91       This  manual  page was generated by the Netpbm tool 'makeman' from HTML
92       source.  The master documentation is at
93
94              http://netpbm.sourceforge.net/doc/pamsplit.html
95
96netpbm documentation            11 August 2011         Pamsplit User Manual(0)
Impressum