Amy Pearson Amy is the product lead for JDeli with expertise in image code, Java, web development, and cloud computing. She focuses on JDeli and has also contributed to JPedal, cloud services, and support. Outside work, she enjoys gaming, F1, and music.

What is JBIG2?

1 min read

JBIG2 is a lossless and lossy compression standard for bi-level images like scanned documents, offering high compression ratios by identifying and encoding similar shapes and patterns efficiently. It is often used for compressing scanned documents by encoding similar shapes and patterns.

 

What does it stand for?

JBIG2 stands for Joint Bi-level Image Experts Group.

What is the difference between JBIG and JBIG2?

JBIG2 is a more advanced version of JBIG, offering improved compression efficiency, broader image support, and more improved features including progressive transmission and lossy compression. JBIG is also mainly used for bi-level images whereas this format supports grayscale and colour images, in addition to bi-level.

How does JBIG2 compress data?

It achieves data compression by using symbol substitution. Additionally, it encodes the image data compactly using arithmetic coding. Overall, it focuses on identifying and encoding repetitive elements in bi-level images to achieve high compression ratios.

How do I use this image format?

JBIG2 is mainly used for lossless compression of bi-level images, resulting in smaller file sizes without sacrificing image quality. It is often used for compressing scanned documents within PDF files, optimising efficient storage and transmission while maintaining image quality.

How is JBIG2 Compression Used?

It is also widely used in document management systems for organisations handling large amounts of scanned paperwork. It is also used as a tool for preserving historical documents and manuscripts in digital formats.

Other common use cases can include:

  • Reducing size of scanned documents in PDF workflows (lossless JBIG2 encoding via tools like OCRmyPDF)
  • Faster transmission and storage of bi-level (black-and-white) images compared to older fax/G4 standards
  • Embedding JBIG2-encoded images in document viewer/SDKs (for render/decode in .NET, Java etc.)
  • Archiving of documents (text, line art, halftone content) using JBIG2 to achieve much smaller files with acceptable quality
  • Multipage document compression using shared symbol dictionaries and pattern matching to exploit repetition across pages

You can read this article to learn how JBig2 is used to display images on a PDF file. You can also learn more about this compression standard on the JPEG website.



Are you a Java Developer working with Image files?

Amy Pearson Amy is the product lead for JDeli with expertise in image code, Java, web development, and cloud computing. She focuses on JDeli and has also contributed to JPedal, cloud services, and support. Outside work, she enjoys gaming, F1, and music.