1Pamdice User Manual(0) Pamdice User Manual(0)
2
3
4
6 pamdice - slice a Netpbm image into many horizontally and/or vertically
7
8
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
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
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
71 -outstem=filenamestem
72 This option determines the names of the output files. Each out‐
73 put file is named filenamestem_y_x.type where filenamestem is
74 the value of the -outstem option, x and y are the horizontal and
75 vertical locations, respectively, in the input image of the out‐
76 put image, zero being the leftmost and top, and type is .pbm,
77 .pgm, .ppm, or .pam, depending on the type of image.
78
79
80 -width=width
81 gives the width in pixels of the output images. The rightmost
82 pieces are smaller than this if the input image is not a multi‐
83 ple of width pixels wide.
84
85
86 -height=height
87 gives the height in pixels of the output images. The bottom
88 pieces are smaller than this if the input image is not a multi‐
89 ple of height pixels high.
90
91
92 -hoverlap=hoverlap
93 gives the horizontal overlap in pixels between output images.
94 Each image in a row will overlap the previous one by hoverlap
95 pixels. By default, there is no overlap.
96
97 This option was new in Netpbm 10.23 (July 2004).
98
99
100 -voverlap=voverlap
101 gives the vertical overlap in pixels between output images.
102 Each row of images will overlap the previous row by voverlap
103 pixels. By default, there is no overlap.
104
105 This option was new in Netpbm 10.23 (July 2004).
106
107
108 -verbose
109 Print information about the processing to Standard Error.
110
111
112
113
115 pamdice was new in Netpbm 9.25 (March 2002).
116
117 Before Netpbm 10.29 (August 2005), there was a limit of 100 slices in
118 each direction.
119
120
122 pamundice(1), pamcut(1), pnmcat(1), pgmslice(1), ppmglobe(1) pnm(1)
123 pam(1)
124
126 This manual page was generated by the Netpbm tool 'makeman' from HTML
127 source. The master documentation is at
128
129 http://netpbm.sourceforge.net/doc/pamdice.html
130
131netpbm documentation 1 April 2007 Pamdice User Manual(0)