summary refs log tree commit diff
path: root/jbigtopnm.html
blob: 0cabc1488b69fb640a8fd5d8cd233ae6ae1e8456 (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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.3//EN">
<html><head><title>Jbigtopnm User Manual</title></head>
<body>
<h1>jbigtopnm</h1>
Updated: 28 July 2020
<br>
<a href="#index">Table Of Contents</a>

<h2>NAME</h2>
jbigtopnm - JBIG to PNM image file converter

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

<b>jbigtopnm</b>
[<b>-xmax</b>]
[<b>-ymax</b>]
[<b>-binary</b>]
[<b>-diagnose</b>]
[<b>-plane</b>]
[<i>input-file</i> [<i>output-file</i>]]

<p>Minimum unique abbreviation of option is acceptable.  You may use double
hyphens instead of single hyphen to denote options.  You may use white
space in place of the equals sign to separate an option name from its value.


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

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

<p><b>jbigtopnm</b> reads a JBIG bi-level image entity (BIE) from a
file or standard input, decompresses it, and outputs a PBM or PGM
file.  If the input has one plane, or you choose just one plane of it,
the output is PBM.  Otherwise, the output is PGM.

<p>JBIG is a highly effective lossless compression algorithm for
bi-level images (one bit per pixel), which is particularly suitable
for scanned document pages.

<p>A JBIG encoded image can be stored in several resolutions in one or
several BIEs. All resolution layers except the lowest one are stored
efficiently as differences to the next lower resolution layer.  You
can use options <b>-x</b> and <b>-y</b> to stop the decompression at a
specified maximal output image size.  The input file can consist of
several concatenated BIEs which contain different increasing
resolution layers of the same image.

<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>jbigtopnm</b> recognizes the following
command line options:

<p>Before Netpbm 10.85 (December 2018), only single-character single-hyphen
abbreviations of the options are accepted.

<dl compact>

<dt><b>-xmax</b> <i>number</i>

<dd>Decode only up to the largest resolution layer which is still not
more than <i>number</i> pixels wide.  If no such resolution layer
exists, then use the smallest one available.

<dt><b>-ymax</b><i> number</i>

<dd>Decode only up to the largest resolution layer which is still not
more than <i>number</i> pixels high.  If no such resolution layer
exists, then use the smallest one available.  You can also use options
<b>-x</b> and <b>-y</b> together which selects the largest layer that
satisfies both limits.

<dt><b>-binary</b>

<dd>Use binary values instead of Gray code words in order to decode
pixel values from multiple bitplanes.  This option has effect only if
the input has more than one bitplane and you don't select just one of
those bitplanes.  Note that the decoder has to be used in the same
mode as the encoder and cannot determine from the BIE, whether Gray or
binary code words were used by the encoder.

<dt><b>-diagnose</b>

<dd>Diagnose a BIE.  With this option, <b>jbigtopnm</b> only prints a
summary of the header information found in the input file and then
exits.

<dt><b>-plane</b><i> number</i>

<dd>If the input contains multiple bitplanes, then extract only the
specified single plane as a PBM file.  The first plane has number 0.

</dl>

<h2 id="standards">STANDARDS</h2>

<p>This program implements the JBIG image coding algorithm as
specified in ISO/IEC 11544:1993 and ITU-T T.82(1993).

<h2 id="author">AUTHOR</h2>

<!-- jbgtopnm below is not a typo.  It is not meant to be jbigtopnm -->
<p><b>jbigtopnm</b> is based on the JBIG library by Markus Kuhn, part
of his <a
href="http://www.cl.cam.ac.uk/~mgk25/jbigkit/"><b>JBIG-KIT</b>
package</a>.  The <b>jbgtopbm</b> program is part of the
<b>JBIG-KIT</b> package.

<p><b>jbigtopnm</b> is part of the Netpbm package of graphics tools.

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

<b><a href="pnm.html">pnm</a></b>,
<b><a href="pnmtojbig.html">pnmtojbig</a></b>

<h2 id="license">LICENSE</h2>

<p>There was at one time concern about the need for patent licenses to
use <b>jbigtopnm</b>, but any relevant patents expired by 2012.

<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="#standards">STANDARDS</a>
<li><a href="#author">AUTHOR</a>
<li><a href="#seealso">SEE ALSO</a>
<li><a href="#license">LICENSE</a>
</ul>
</body>
</html>