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
|
\
.\" This man page was generated by the Netpbm tool 'makeman' from HTML source.
.\" Do not hand-hack it! If you have bug fixes or improvements, please find
.\" the corresponding HTML page on the Netpbm website, generate a patch
.\" against that, and send it to the Netpbm maintainer.
.TH "Ppmdither User Manual" 0 "16 December 2009" "netpbm documentation"
.SH NAME
ppmdither - ordered dither for color images
.UN synopsis
.SH SYNOPSIS
\fBppmdither\fP
[\fB-dim\fP=\fIpower\fP]
[\fB-red\fP=\fIn\fP]
[\fB-green\fP=\fIn\fP]
[\fB-blue\fP=\fIn\fP]
[\fInetpbmfile\fP]
.PP
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.
.UN description
.SH DESCRIPTION
.PP
This program is part of
.BR "Netpbm" (1)\c
\&.
.PP
\fBppmdither\fP 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.
.PP
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 \fB-red=2 -green=2 -blue=2\fP.
.PP
You can do another kind of dither -- Floyd-Steinberg -- with
\fBpnmquant\fP or \fBpnmremap\fP.
.UN options
.SH OPTIONS
.TP
\fB-dim\fP \fIpower\fP
The size of the dithering matrix. The dithering matrix is a
square whose dimension is a power of 2. \fIpower\fP is that power of
2. The default is 4, for a 16 by 16 matrix.
.TP
\fB-red\fP=\fIn\fP
The number of red shades to be used, including black; minimum of 2.
.sp
Default is 5.
.TP
\fB-green\fP \fIn\fP
The number of green shades to be used, including black; minimum of 2.
.sp
Default is 9.
.TP
\fB-blue\fP \fIn\fP
The number of blue shades to be used, including black; minimum of 2.
.sp
Default is 5.
.UN seealso
.SH SEE ALSO
.BR "pamditherbw" (1)\c
\&,
.BR "pamdepth" (1)\c
\&,
.BR "pnmquant" (1)\c
\&,
.BR "pnmremap" (1)\c
\&,
.BR "ppm" (5)\c
\&
.UN author
.SH AUTHOR
Copyright (C) 1991 by Christos Zoulas.
.SH DOCUMENT SOURCE
This manual page was generated by the Netpbm tool 'makeman' from HTML
source. The master documentation is at
.IP
.B http://netpbm.sourceforge.net/doc/ppmdither.html
.PP
|