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 to 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       The default is no padding (equivalent to -padname=0).
51
52       The -padname option was new in Netpbm 10.23 (July 2004).  Before  that,
53       there was never any padding.
54
55       Note  that to do the reverse operation (combining multiple single-image
56       Netpbm files into a multi-image one), there is no special  Netpbm  pro‐
57       gram.  Just use cat.
58
59       If  you  just  want to find out basic information about the images in a
60       stream, you can use pamfile on the stream.
61
62       To extract images from a stream and generate a single stream containing
63       them, use pampick.
64
65       To run a program on each image in a stream without the hassle of tempo‐
66       rary files, use pamexec.
67
68
69

SEE ALSO

71       pamfile(1), pampick(1), pamexec(1), pnm(1), pam(1), cat man page
72

DOCUMENT SOURCE

74       This manual page was generated by the Netpbm tool 'makeman'  from  HTML
75       source.  The master documentation is at
76
77              http://netpbm.sourceforge.net/doc/pamsplit.html
78
79netpbm documentation            11 August 2011         Pamsplit User Manual(0)
Impressum