Blob Blame History Raw
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//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>

<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>