summary refs log tree commit diff
path: root/pgmtopbm.html
blob: 0825a4501a7a52d0f64b6d5545b144bb1020346a (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
<!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>produces 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.

<p>If you just want to convert a PGM image with maxval 1 to PBM,
use <a href="pamtopnm.html"><b>pamtopnm</b></a>

</BODY>
</HTML>