Debian Codegraph @

upstream/debian-unstable/man1/ppmdither.1

raw
1 \
2 .\" This man page was generated by the Netpbm tool 'makeman' from HTML source.
3 .\" Do not hand-hack it! If you have bug fixes or improvements, please find
4 .\" the corresponding HTML page on the Netpbm website, generate a patch
5 .\" against that, and send it to the Netpbm maintainer.
6 .TH "Ppmdither User Manual" 1 "16 December 2009" "netpbm documentation"
7
8 .SH NAME
9 ppmdither - ordered dither for color images
10
11 .UN synopsis
12 .SH SYNOPSIS
13
14 \fBppmdither\fP
15
16 [\fB-dim\fP=\fIpower\fP]
17
18 [\fB-red\fP=\fIn\fP]
19
20 [\fB-green\fP=\fIn\fP]
21
22 [\fB-blue\fP=\fIn\fP]
23
24 [\fInetpbmfile\fP]
25 .PP
26 All options can be abbreviated to their shortest unique prefix.
27 You may use two hyphens instead of one to designate an option. You
28 may use either white space or an equals sign between an option name
29 and its value.
30
31
32 .UN description
33 .SH DESCRIPTION
34 .PP
35 This program is part of
36 .BR "Netpbm" (1)\c
37 \&.
38 .PP
39 \fBppmdither\fP reads a Netpbm image as input, and applies dithering
40 to it to reduce the number of colors used down to the specified number
41 of shades for each primary. It produces a PPM image as output.
42 .PP
43 The default number of shades is 5 red, 9 green, and 5 blue, for a total of
44 225 colors. To convert the image to a binary rgb format suitable for
45 primitive color printers, use \fB-red=2 -green=2 -blue=2\fP.
46 .PP
47 You can do another kind of dither -- Floyd-Steinberg -- with
48 \fBpnmquant\fP or \fBpnmremap\fP.
49
50 .UN options
51 .SH OPTIONS
52 .PP
53 In addition to the options common to all programs based on libnetpbm
54 (most notably \fB-quiet\fP, see
55 .UR index.html#commonoptions
56 Common Options
57 .UE
58 \&), \fBppmdither\fP recognizes the following
59 command line options:
60
61
62 .TP
63 \fB-dim\fP \fIpower\fP
64 The size of the dithering matrix. The dithering matrix is a
65 square whose dimension is a power of 2. \fIpower\fP is that power of
66 2. The default is 4, for a 16 by 16 matrix.
67
68 .TP
69 \fB-red\fP=\fIn\fP
70 The number of red shades to be used, including black; minimum of 2.
71 .sp
72 Default is 5.
73
74 .TP
75 \fB-green\fP \fIn\fP
76 The number of green shades to be used, including black; minimum of 2.
77 .sp
78 Default is 9.
79
80 .TP
81 \fB-blue\fP \fIn\fP
82 The number of blue shades to be used, including black; minimum of 2.
83 .sp
84 Default is 5.
85
86
87 .UN seealso
88 .SH SEE ALSO
89 .BR "pamditherbw" (1)\c
90 \&,
91 .BR "pamdepth" (1)\c
92 \&,
93 .BR "pnmquant" (1)\c
94 \&,
95 .BR "pnmremap" (1)\c
96 \&,
97 .BR "ppm" (1)\c
98 \&
99
100 .UN author
101 .SH AUTHOR
102
103 Copyright (C) 1991 by Christos Zoulas.
104 .SH DOCUMENT SOURCE
105 This manual page was generated by the Netpbm tool 'makeman' from HTML
106 source. The master documentation is at
107 .IP
108 .B http://netpbm.sourceforge.net/doc/ppmdither.html
109 .PP