summary refs log tree commit diff
path: root/ppmdither.html
blob: c72c65c7a6054e41a1001ef56a2eec38fad54192 (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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.3//EN">
<html><head><title>Ppmdither User Manual</title></head>
<body>
<h1>ppmdither</h1>
Updated: 16 December 2009
<br>
<a href="#index">Table Of Contents</a>

<h2>NAME</h2>
ppmdither - ordered dither for color images

<h2 id="synopsis">SYNOPSIS</h2>

<b>ppmdither</b>

[<b>-dim</b>=<i>power</i>]

[<b>-red</b>=<i>n</i>]

[<b>-green</b>=<i>n</i>]

[<b>-blue</b>=<i>n</i>]

[<i>netpbmfile</i>]

<p>All options can be abbreviated to their shortest unique prefix.
You may use two hyphens instead of one to designate an option.  You
may use either white space or an equals sign between an option name
and its value.


<h2 id="description">DESCRIPTION</h2>

<p>This program is part of <a href="index.html">Netpbm</a>.

<p><b>ppmdither</b> reads a Netpbm image as input, and applies dithering
to it to reduce the number of colors used down to the specified number
of shades for each primary.  It produces a PPM image as output.

<p>The default number of shades is 5 red, 9 green, and 5 blue, for a total of
225 colors.  To convert the image to a binary rgb format suitable for
primitive color printers, use <b>-red=2 -green=2 -blue=2</b>.

<p>You can do another kind of dither -- Floyd-Steinberg -- with 
<b>pnmquant</b> or <b>pnmremap</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>ppmdither</b> recognizes the following
command line options:

<dl compact>
<dt><b>-dim</b> <i>power</i>

<dd> The size of the dithering matrix.  The dithering matrix is a
square whose dimension is a power of 2.  <i>power</i> is that power of
2.  The default is 4, for a 16 by 16 matrix.

<dt><b>-red</b>=<i>n</i>

<dd>
The number of red shades to be used, including black; minimum of 2.

<p>Default is 5.

<dt><b>-green</b> <i>n</i>

<dd>
The number of green shades to be used, including black; minimum of 2.

<p>Default is 9.

<dt><b>-blue</b> <i>n</i>

<dd>
The number of blue shades to be used, including black; minimum of 2.

<p>Default is 5.

</dl>
<h2 id="seealso">SEE ALSO</h2>

<a href="pamditherbw.html">pamditherbw</a>,
<a href="pamdepth.html">pamdepth</a>,
<a href="pnmquant.html">pnmquant</a>,
<a href="pnmremap.html">pnmremap</a>,
<a href="ppm.html">ppm</a>

<h2 id="author">AUTHOR</h2>

Copyright (C) 1991 by Christos Zoulas.

<hr>
<h2 id="index">Table Of Contents</h2>
<ul>
<li><a href="#synopsis">SYNOPSIS</a>
<li><a href="#description">DESCRIPTION</a>
<li><a href="#options">OPTIONS</a>
<li><a href="#seealso">SEE ALSO</a>
<li><a href="#author">AUTHOR</a>
</ul>
</body>
</html>