summary refs log tree commit diff
path: root/pamdice.html
blob: 6151c0cb76cdb41513f1b990aa4c97c8691d2000 (plain) (blame)
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
156
157
158
159
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.3//EN">
<html><head><title>Pamdice User Manual</title></head>
<body>
<h1>pamdice</h1>
Updated: 01 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 &gt;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 <b>pamcat</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>

<p>In addition to the options common to all programs based on libnetpbm
(most notably <b>-quiet</b>, see <a href="index.html#commonoptions">
Common Options</a>), <b>pamdice</b> recognizes the following
command line options:

<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="pamcat.html">pamcat</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">pam</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>