JPedal JBIG2 Image decoder
The JPedal JBIG2 Image Decoder is a 100% pure Java image decoder for the JBIG2 file format. The decoder takes the JBIG2 image processing technology developed for the JPedal PDF renderer and makes it available as a generic library for more general usage.
It offers the ability to allow developers to add JBIG2 image rendering capabilities to their own applications, through a simple and easy to use API. In its simplest form it allows developers to load in a JBIG2 encoded datastream and convert that into a BufferedImage.
All updates are announced on the RSS feed. Join the RSS feed and keep updated.
JAI plug-in
The JPedal JBIG2 Image Decoder also acts as a plug-in for the ImageIO framework. Including the jbig2.jar on the classpath seamlessly enables the decoding of JBIG2 images with the single line:
BufferedImage biImage = ImageIO.read(new File("C:/file.jbig2"));
For a complete example using the JAI plug-in, a code example is included in:
Licensing
The software is available under the BSD license. Support is available on a commercial basis.
Downloading the Decoder
The JPedal JBIG2 Image Decoder is provided as a standalone jar file along with the source code.
Click here to download latest version of the compiled jar.
Click here to download latest version of the source code
Running the Demo
The decoder can be run by double-clicking on the jar (if your machine is correctly setup) or using the command java -jar jbig2.jar from the command-line.
Both should bring up a demo window looking like this:
Using the Decoder in your code
The library can used by adding the jar file to the classpath. A code example is included in:
- org.jpedal.jbig2.examples.viewer.JBIG2Viewer is a very simple example which allows jbig2 image files to be opened and displayed.











