summary refs log tree commit diff
path: root/pbmtog3.html
blob: 88de7656049f766f1f45d28be5a04712912ef18c (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
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
103
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.3//EN">
<html><head><title>Pbmtog3 User Manual</title></head>
<body>
<h1>pbmtog3</h1>
Updated: 20 April 2017
<br>
<a href="#index">Table Of Contents</a>

<h2>NAME</h2>
pbmtog3 - convert a PBM image into a Group 3 MH fax file

<h2 id="synopsis">SYNOPSIS</h2>

<b>pbmtog3</b>
[<b>-reversebits</b>]
[<b>-nofixedwidth</b>]
[<b>-align8</b>|<b>-align16</b>]
[<i>pbmfile</i>]

<h2 id="description">DESCRIPTION</h2>

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

<p><b>pbmtog3</b> reads a PBM image as input and produces a Group 3 MH fax
file as output.

<p>You can also generate a TIFF file that uses the same encoding
inside, with <b>pamtotiff</b>.

<p>There is no program in Netpbm that generates other fax formats,
such as MR and MMR, but <b>pamtotiff</b> can generate TIFF files that
use those encodings.

<h2 id="options">OPTIONS</h2>

<p>In addition to the options common to all programs based on libnetpbm
(most notably <b>-quiet</b>, see <a href="index.html#commonoptions">
Common Options</a>), <b>pbmtog3</b> recognizes the following
command line options:

<dl>
<dt><b>-reversebits</b>

<dd>This option causes the output to have the bits in every byte
reversed so the least significant bit becomes the most significant bit.
Some fax modems expect bits in reverse order, and this compensates for
that. If you get a whole bunch of "bad code word" messages when you try
to read the G3 file (e.g. with <b>g3topbm</b>), try using this option.
Note that the output is not G3 when you use this option.

<dt><b>-nofixedwidth</b>

<dd>Most fax machines expect the image to be 1728 columns wide, so
<b>pbmtog3</b> cuts the output to this width by default.  If you want to
keep the width of the original image, use this option.

<p>This option was new in Netpbm 10.6 (July 2002).  Before that,
<b>pbmtog3</b> always kept the width of the original image.

<dt><b>-align8</b>
<dt><b>-align16</b>
<dd>These options say to align output rows to 8-bit or 16-bit boundaries,
respectively, by adding padding bits in front of EOL codes
<p>
Without these options, <b>pbmtog3</b> adds no padding and rows may begin
and ends anywhere within a byte.
<p>
You cannot specify both.
<p>These options were new in Netpbm 10.79 (June 2017).     

</dl>

<h2 id="seealso">SEE ALSO</h2>

<a href="g3topbm.html">g3topbm</a>,
<a href="pamtotiff.html">pamtotiff</a>,
<a href="pbm.html">pbm</a>,
<a href="faxformat.html">fax formats</a>

<h2 id="history">HISTORY</h2>

<p>Before Netpbm 10.79 (June 2017), there was a different program by the same
name in Netpbm, which was written by by Paul Haeberli
&lt;<a href="mailto:paul@manray.sgi.com">paul@manray.sgi.com</a>&gt; in 1989
and then modified extensively by others.

<p>Akira Urushibata &lt;afu@wta.att.ne.jp&gt; wrote the current version, with
an entirely different algorithm, in April 2017 and contributed his work to the
public domain.

<p>The current program is backward compatible with the pre-10.79 version.

<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="#history">HISTORY</a>
</ul>
</body>
</html>