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

NAME

6       pamdice - slice a Netpbm image into many horizontally and/or vertically
7
8

EXAMPLE

10           $ pamdice myimage.ppm -outstem=myimage_part -width=10 -height=8
11           $ pamundice myimage_part_%1d_%1a.ppm -across=10 -down=8 >myimage.ppm
12
13           $ pamdice myimage.ppm -outstem=myimage_part -height=12 -voverlap=9
14
15
16

SYNOPSIS

18       pamdice
19
20       -outstem=filenamestem
21
22       [-width=width]
23
24       [-height=height]
25
26       [-hoverlap=hoverlap]
27
28       [-voverlap=voverlap]
29
30       [-verbose]
31
32       [filename]
33
34       You  can  use  the minimum unique abbreviation of the options.  You can
35       use two hyphens instead of one.  You can separate an option  name  from
36       its value with white space instead of an equals sign.
37
38

DESCRIPTION

40       This program is part of Netpbm(1).
41
42       pamdice reads a PAM, PBM, PGM, or PPM image as input and splits it hor‐
43       izontally and/or vertically into equal size pieces and writes them into
44       separate  files as the same kind of image.  You can optionally make the
45       pieces overlap.
46
47       See the -outstem option for information on naming of the output files.
48
49       The -width and -height options determine the size of the output pieces.
50
51       pamundice can rejoin the images.  For finer control, you can also use
52
53       pnmcat.
54
55       One use for this is to make pieces that take  less  computer  resources
56       than  the whole image to process.  For example, you might have an image
57       so large that an image editor can't read it all  into  memory  or  pro‐
58       cesses  it  very  slowly.   With pamdice, you can split it into smaller
59       pieces, edit one at a time, and then reassemble them.
60
61       Another use for this is to print a large image in  small  printer-sized
62       pieces  that  you can glue together.  ppmglobe does a similar thing; it
63       lets you glue the pieces together into a sphere.
64
65       If you want to cut pieces from an image individually, not in a  regular
66       grid, use pamcut.
67
68
69

OPTIONS

71       In  addition  to  the options common to all programs based on libnetpbm
72       (most notably -quiet, see
73        Common Options ⟨index.html#commonoptions⟩ ),  pamdice  recognizes  the
74       following command line options:
75
76
77
78       -outstem=filenamestem
79              This option determines the names of the output files.  Each out‐
80              put file is named filenamestem_y_x.type  where  filenamestem  is
81              the value of the -outstem option, x and y are the horizontal and
82              vertical locations, respectively, in the input image of the out‐
83              put  image,  zero  being the leftmost and top, and type is .pbm,
84              .pgm, .ppm, or .pam, depending on the type of image.
85
86
87       -width=width
88              gives the width in pixels of the output images.   The  rightmost
89              pieces  are smaller than this if the input image is not a multi‐
90              ple of width pixels wide.
91
92
93       -height=height
94              gives the height in pixels of the  output  images.   The  bottom
95              pieces  are smaller than this if the input image is not a multi‐
96              ple of height pixels high.
97
98
99       -hoverlap=hoverlap
100              gives the horizontal overlap in pixels  between  output  images.
101              Each  image  in  a row will overlap the previous one by hoverlap
102              pixels.  By default, there is no overlap.
103
104              This option was new in Netpbm 10.23 (July 2004).
105
106
107       -voverlap=voverlap
108              gives the vertical overlap  in  pixels  between  output  images.
109              Each  row  of  images  will overlap the previous row by voverlap
110              pixels.  By default, there is no overlap.
111
112              This option was new in Netpbm 10.23 (July 2004).
113
114
115       -verbose
116              Print information about the processing to Standard Error.
117
118
119
120

HISTORY

122       pamdice was new in Netpbm 9.25 (March 2002).
123
124       Before Netpbm 10.29 (August 2005), there was a limit of 100  slices  in
125       each direction.
126
127

SEE ALSO

129       pamundice(1),  pamcut(1),  pnmcat(1),  pgmslice(1),  ppmglobe(1) pnm(1)
130       pam(1)
131

DOCUMENT SOURCE

133       This manual page was generated by the Netpbm tool 'makeman'  from  HTML
134       source.  The master documentation is at
135
136              http://netpbm.sourceforge.net/doc/pamdice.html
137
138netpbm documentation             01 April 2007          Pamdice User Manual(0)
Impressum