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

NAME

6       pamsplit - split a multi-image PNM/PAM 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 specification of the input file, or - to indi‐
32       cate Standard Input.  The default is Standard Input.
33
34       output_file_pattern tells how to name the output files.  It is the file
35       specification  of  the  output file, except that the first occurence of
36       '%d' in it is replaced by the image sequence number in  unpadded  ASCII
37       decimal,  with  the sequence starting at 0.  If there is no '%d' in the
38       pattern, 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

SEE ALSO

67       pamfile(1), pampick(1), pnm(1), pam(1), cat man page
68
69
70
71netpbm documentation            23 October 2005        Pamsplit User Manual(0)
Impressum