1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML><HEAD><TITLE>Pamdice User Manual</TITLE></HEAD>
<BODY>
<H1>pamdice</H1>
Updated: 1 April 2007
<BR>
<A HREF="#index">Table Of Contents</A>
<H2>NAME</H2>
pamdice - slice a Netpbm image into many horizontally and/or vertically
<h2 id="example">EXAMPLE</h2>
<pre>
<kbd>
$ pamdice myimage.ppm -outstem=myimage_part -width=10 -height=8
$ pamundice myimage_part_%1d_%1a.ppm -across=10 -down=8 >myimage.ppm
$ pamdice myimage.ppm -outstem=myimage_part -height=12 -voverlap=9
</kbd>
</pre>
<H2 id="synopsis">SYNOPSIS</H2>
<B>pamdice</B>
<B>-outstem=</B><I>filenamestem</I>
[<B>-width=</B><I>width</I>]
[<B>-height=</B><I>height</I>]
[<B>-hoverlap=</B><I>hoverlap</I>]
[<B>-voverlap=</B><I>voverlap</I>]
[<B>-verbose</B>]
[<I>filename</I>]
<P>You can use the minimum unique abbreviation of the options. You can use
two hyphens instead of one. You can separate an option name from its value
with white space instead of an equals sign.
<H2 id="description">DESCRIPTION</H2>
<p>This program is part of <a href="index.html">Netpbm</a>.
<p><b>pamdice</b> reads a PAM, PBM, PGM, or PPM image as input and
splits it horizontally and/or vertically into equal size pieces and
writes them into separate files as the same kind of image. You can
optionally make the pieces overlap.
<P>See the <B>-outstem</B> option for information on naming of the
output files.
<P>The <B>-width</B> and <B>-height</B> options determine the size of
the output pieces.
<p><b>pamundice</b> can rejoin the images. For finer control, you can
also use <P><B>pnmcat</B>.
<p>One use for this is to make pieces that take less computer resources
than the whole image to process. For example, you might have an image
so large that an image editor can't read it all into memory or processes
it very slowly. With <b>pamdice</b>, you can split it into smaller pieces,
edit one at a time, and then reassemble them.
<p>Another use for this is to print a large image in small printer-sized
pieces that you can glue together. <b>ppmglobe</b> does a similar thing;
it lets you glue the pieces together into a sphere.
<p>If you want to cut pieces from an image individually, not in a regular
grid, use <b>pamcut</b>.
<H2 id="options">OPTIONS</H2>
<DL COMPACT>
<DT><B>-outstem=</B>filenamestem
<DD>This option determines the names of the output files. Each output
file is named
<I>filenamestem</I><B>_</B><I>y</I><B>_</B><I>x</I><B>.</B><I>type</I>
where <I>filenamestem</I> is the value of the <B>-outstem</B> option,
<I>x</I> and y are the horizontal and vertical locations,
respectively, in the input image of the output image, zero being the
leftmost and top, and <I>type</I> is <B>.pbm</B>, <B>.pgm</B>,
<B>.ppm</B>, or <B>.pam</B>, depending on the type of image.
<DT><B>-width=</B><I>width</I>
<DD>gives the width in pixels of the output images. The rightmost
pieces are smaller than this if the input image is not a multiple of
<I>width</I> pixels wide.
<DT><B>-height=</B><I>height</I>
<DD>gives the height in pixels of the output images. The bottom
pieces are smaller than this if the input image is not a multiple of
<I>height</I> pixels high.
<DT><B>-hoverlap=</B><I>hoverlap</I>
<DD>gives the horizontal overlap in pixels between output images.
Each image in a row will overlap the previous one by <I>hoverlap</I>
pixels. By default, there is no overlap.
<p>This option was new in Netpbm 10.23 (July 2004).
<DT><B>-voverlap=</B><I>voverlap</I>
<DD>gives the vertical overlap in pixels between output images.
Each row of images will overlap the previous row by <I>voverlap</I>
pixels. By default, there is no overlap.
<p>This option was new in Netpbm 10.23 (July 2004).
<DT><B>-verbose</B>
<DD>Print information about the processing to Standard Error.
</DL>
<H2 id="history">HISTORY</H2>
<p><b>pamdice</b> was new in Netpbm 9.25 (March 2002).
<p>Before Netpbm 10.29 (August 2005), there was a limit of 100 slices
in each direction.
<H2 id="seealso">SEE ALSO</H2>
<B><A HREF="pamundice.html">pamundice</A></B>,
<B><A HREF="pamcut.html">pamcut</A></B>,
<B><A HREF="pnmcat.html">pnmcat</A></B>,
<B><A HREF="pgmslice.html">pgmslice</A></B>,
<B><A HREF="ppmglobe.html">ppmglobe</A></B>
<B><A HREF="pnm.html">pnm</A></B>
<B><A HREF="pam.html">pnm</A></B>
<HR>
<H2 id="index">Table Of Contents</H2>
<UL>
<LI><A HREF="#example">EXAMPLE</A>
<LI><A HREF="#synopsis">SYNOPSIS</A>
<LI><A HREF="#description">DESCRIPTION</A>
<LI><A HREF="#options">OPTIONS</A>
<LI><A HREF="#history">HISTORY</A>
<LI><A HREF="#seealso">SEE ALSO</A>
</UL>
</BODY>
</HTML>
|