Debian Codegraph @

userguide/jbigtopnm.html

raw
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.3//EN">
2 <html><head><title>Jbigtopnm User Manual</title></head>
3 <body>
4 <h1>jbigtopnm</h1>
5 Updated: 28 July 2020
6 <br>
7 <a href="#index">Table Of Contents</a>
8
9 <h2>NAME</h2>
10 jbigtopnm - JBIG to PNM image file converter
11
12 <h2 id="synopsis">SYNOPSIS</h2>
13
14 <b>jbigtopnm</b>
15 [<b>-xmax</b>]
16 [<b>-ymax</b>]
17 [<b>-binary</b>]
18 [<b>-diagnose</b>]
19 [<b>-plane</b>]
20 [<i>input-file</i> [<i>output-file</i>]]
21
22 <p>Minimum unique abbreviation of option is acceptable. You may use double
23 hyphens instead of single hyphen to denote options. You may use white
24 space in place of the equals sign to separate an option name from its value.
25
26
27 <h2 id="description">DESCRIPTION</h2>
28
29 <p>This program is part of <a href="index.html">Netpbm</a>.
30
31 <p><b>jbigtopnm</b> reads a JBIG bi-level image entity (BIE) from a
32 file or standard input, decompresses it, and outputs a PBM or PGM
33 file. If the input has one plane, or you choose just one plane of it,
34 the output is PBM. Otherwise, the output is PGM.
35
36 <p>JBIG is a highly effective lossless compression algorithm for
37 bi-level images (one bit per pixel), which is particularly suitable
38 for scanned document pages.
39
40 <p>A JBIG encoded image can be stored in several resolutions in one or
41 several BIEs. All resolution layers except the lowest one are stored
42 efficiently as differences to the next lower resolution layer. You
43 can use options <b>-x</b> and <b>-y</b> to stop the decompression at a
44 specified maximal output image size. The input file can consist of
45 several concatenated BIEs which contain different increasing
46 resolution layers of the same image.
47
48 <h2 id="options">OPTIONS</h2>
49
50 <p>In addition to the options common to all programs based on libnetpbm
51 (most notably <b>-quiet</b>, see <a href="index.html#commonoptions">
52 Common Options</a>), <b>jbigtopnm</b> recognizes the following
53 command line options:
54
55 <p>Before Netpbm 10.85 (December 2018), only single-character single-hyphen
56 abbreviations of the options are accepted.
57
58 <dl compact>
59
60 <dt><b>-xmax</b> <i>number</i>
61
62 <dd>Decode only up to the largest resolution layer which is still not
63 more than <i>number</i> pixels wide. If no such resolution layer
64 exists, then use the smallest one available.
65
66 <dt><b>-ymax</b><i> number</i>
67
68 <dd>Decode only up to the largest resolution layer which is still not
69 more than <i>number</i> pixels high. If no such resolution layer
70 exists, then use the smallest one available. You can also use options
71 <b>-x</b> and <b>-y</b> together which selects the largest layer that
72 satisfies both limits.
73
74 <dt><b>-binary</b>
75
76 <dd>Use binary values instead of Gray code words in order to decode
77 pixel values from multiple bitplanes. This option has effect only if
78 the input has more than one bitplane and you don't select just one of
79 those bitplanes. Note that the decoder has to be used in the same
80 mode as the encoder and cannot determine from the BIE, whether Gray or
81 binary code words were used by the encoder.
82
83 <dt><b>-diagnose</b>
84
85 <dd>Diagnose a BIE. With this option, <b>jbigtopnm</b> only prints a
86 summary of the header information found in the input file and then
87 exits.
88
89 <dt><b>-plane</b><i> number</i>
90
91 <dd>If the input contains multiple bitplanes, then extract only the
92 specified single plane as a PBM file. The first plane has number 0.
93
94 </dl>
95
96 <h2 id="standards">STANDARDS</h2>
97
98 <p>This program implements the JBIG image coding algorithm as
99 specified in ISO/IEC 11544:1993 and ITU-T T.82(1993).
100
101 <h2 id="author">AUTHOR</h2>
102
103 <!-- jbgtopnm below is not a typo. It is not meant to be jbigtopnm -->
104 <p><b>jbigtopnm</b> is based on the JBIG library by Markus Kuhn, part
105 of his <a
106 href="http://www.cl.cam.ac.uk/~mgk25/jbigkit/"><b>JBIG-KIT</b>
107 package</a>. The <b>jbgtopbm</b> program is part of the
108 <b>JBIG-KIT</b> package.
109
110 <p><b>jbigtopnm</b> is part of the Netpbm package of graphics tools.
111
112 <h2 id="seealso">SEE ALSO</h2>
113
114 <b><a href="pnm.html">pnm</a></b>,
115 <b><a href="pnmtojbig.html">pnmtojbig</a></b>
116
117 <h2 id="license">LICENSE</h2>
118
119 <p>There was at one time concern about the need for patent licenses to
120 use <b>jbigtopnm</b>, but any relevant patents expired by 2012.
121
122 <hr>
123 <h2 id="index">Table Of Contents</h2>
124 <ul>
125 <li><a href="#synopsis">SYNOPSIS</a>
126 <li><a href="#description">DESCRIPTION</a>
127 <li><a href="#options">OPTIONS</a>
128 <li><a href="#standards">STANDARDS</a>
129 <li><a href="#author">AUTHOR</a>
130 <li><a href="#seealso">SEE ALSO</a>
131 <li><a href="#license">LICENSE</a>
132 </ul>
133 </body>
134 </html>
135
136