jbig2dec(1) jbig2dec Manual jbig2dec(1)

# [NAME](#NAME)

jbig2dec - File format converter specialized in JBIG2 decoding

# [SYNOPSIS](#SYNOPSIS)

**jbig2dec** \[*options*] *file.jbig2*  
**jbig2dec** \[*options*] *global-stream page-stream*

# [DESCRIPTION](#DESCRIPTION)

The **jbig2dec** command converts JBIG2 files to png or pbm files.

When passed a single *file* argument it is interpreted as a JBIG2 file stream, with either sequential or random-access organization.

When passed two stream arguments, they are interpreted as the global and page-specific portions of an embedded organization, as used in PDF. If a particular page references no global segment stream, /dev/null can be passed for the *global-stream* argument to request the embedded parser.

# [OPTIONS](#OPTIONS)

The options are as follows:

[**-e**, **--embedded**](#e)

Expect embedded bit stream without file header.

[**-o file, --output file**](#o)

Store the decoded output in *file*. Defaults to the input with a different extension. Set to *-* for standard output.

[**-t type, --format type**](#t)

Force a particular output file format. Supported are *png* and *pbm*.

[**-d**, **--dump**](#d)

Print the structure of the JBIG2 file rather than explicitly decoding it.

[**-m**, **--hash**](#m)

Print a hash of the decoded document.

[**-q**, **--quiet**](#q)

Suppress warnings and other diagnostic output.

[**-v**, **--verbose**](#v)

Report additional information about the decoding process. Pass just **-v** for information about the file as it's being decoded. This is the same as **--verbose=2**. Pass **--verbose=3** or higher for debugging information.

[**-V**, **--version**](#V)

Show program version information.

[**-h**, **--help**](#h)

Show usage summary.

# [REPORTING BUGS](#REPORTING_BUGS)

Report bugs at https://bugs.ghostscript.com

Contact the developers on Discord: https://discord.gg/taPnFQp5gb or via the mailing list &lt;gs-devel@ghostscript.com&gt;.

# [AUTHOR](#AUTHOR)

This manpage was initially written by Sebastian Rasmussen &lt;sebras@gmail.com&gt; for jbig2dec and the Debian Project.

2023 May 19 Version 0.20

---

Document: jbig2dec(1) from jbig2dec 0.20-r5 (Chainguard OS)
Source: https://github.com/ArtifexSoftware/jbig2dec.git
