summary refs log tree commit diff
path: root/pgmtopbm.html
blob: 5b45ab303a9309a75ba34043e84b346c9906b191 (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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML><HEAD><TITLE>Pgmtopbm User Manual</TITLE></HEAD>
<BODY>
<H1>pgmtopbm</H1>
Updated: 20 June 2004
<BR>
<A HREF="#index">Table Of Contents</A>

<H2>NAME</H2>

pgmtopbm - convert a PGM image to PBM

<H2>SYNOPSIS</H2>

<B>pgmtopbm</B>

[<B>-floyd</B> | <B>-fs</B> | <B>-threshold</B>
| <B>-hilbert</B>
| <B>-dither8</B> | <B>-d8</B> | <B>-cluster3</B>
| <B>-c3</B> | <B>-cluster4</B> | <B>-c4</B>
| <B>-cluster8</B> | <B>-c8</B>]

[<B>-value</B> <I>val</I>]

[<B>-clump</B> <I>size</I>]

[<I>pgmfile</I>]

<H2>DESCRIPTION</H2>

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

<p>This program is obsolete since Netpbm 10.23 (July 2004).  Use <a
href="pamditherbw.html"><b>pamditherbw</b></a> to do what this program
used to do.

<p><b>pgmtopbm</b> never was the simple converter it appeared to be.
It was a dithering program.  Unfortunately, it didn't do the dithering
properly because it treated the PGM input samples as if they were
directly proportional to light intensity, but they are actually
gamma-adjusted.

<p><b>pamditherbw</b> is backward compatible with <b>pgmtopbm</b>
except that it 
<ul>
<li>does the correct gamma adjustments.
<li>produced PAM output instead of PBM.  (Modern Netpbm programs that
accept PBM input also accept PAM input, but if you need actual PBM,
you can use <b>pamtopbm</b> with <b>pamditherbw</b>).
</ul>
So use the manual for <b>pamditherbw</b> for <b>pgmtopbm</b>, except
ignore anything that says it was added after Netpbm Release 10.23
and ignore any options that are not shown in the synopsis above.

</BODY>
</HTML>