Questions tagged [jbig2]

An image compression standard for bi-level images that can be compress images up to 10x smaller than with TIFF G4

Developed by the Joint Bi-level Image Experts Group, it is suitable for both lossless and lossy compression.

The JBIG2 primer contains more detailed information.

26 questions
0
votes
0 answers

JBIG2 encoder giving lower compression ratio as compared to JBIG1?

I am currently working on the compression of binary images. There is an algorithm that I am trying to test and compare its compression ratio to JBIG2 encoded images. I want to compute the compression ratio of specific images using my algorithm and…
0
votes
1 answer

Implementation of JBIG-KIT Via MATLAB

I am trying to implement the JBIG compression for some images. I just want to know the compression ratio achieved by the algorithm. For this, I am using JBIG-KIT by Markus K. https://www.cl.cam.ac.uk/~mgk25/jbigkit/ Also, there is a MATLAB…
0
votes
0 answers

Modify pdf.py to create pages of a specific size with centered images

I'd like to use the pdf.py script here to create PDFs of a specific size, much the way img2pdf does. I'd be happy for a few standard sizes, like US letter or A4, and have been able to modify the script so that it creates a page of the correct size,…
Eponymous
  • 109
  • 8
0
votes
2 answers

Linking error when building mupdf with MinGW-w64

I tried to build mupdf libs with MinGW-w64. Compiling and ar operations were finished, but when linking the exec file, it reported errors like…
L. Drail
  • 35
  • 1
  • 1
  • 4
0
votes
1 answer

How can I find out in Java if a PDF file contains a JBIG2 image?

I am using Apache PDFBox to read a PDF file and convert it into a JPEG image. import java.io.ByteArrayInputStream; import java.awt.image.BufferedImage; import org.apache.pdfbox.pdmodel.PDDocument; import…
Joe7
  • 508
  • 1
  • 4
  • 17
0
votes
1 answer

JBig2 not resolved at runtime?

I have an Java/Gradle application that uses PDFBox to convert PDFs to PNGs. While testing locally on my IDE, my code is as follows: public static void main(String[] args) throws IOException { PDDocument doc = PDDocument.load(new…
user2654096
  • 71
  • 2
  • 8
0
votes
1 answer

C# PDF compression / recompress JBIG2 to JPEG

I have PDF compressed with JBIG2. How can I recompress it to JPEG or any other compression algorithms? I want to use open source solution like Itextsharp/PDFSharp or any other c# .net open source project.
0
votes
1 answer

Extract image from pdf using PDFSharp with /JBIG2 filter

I am trying to extract images from a PDF file using PDFsharp. The test file I ran the code on shows the filter type being /JBIG2. I would like help in understanding how to decode this image and save it, if it is at all possible using PDFSharp. The…
0
votes
0 answers

How to send a RenderedImage as input to a Process

I am able to compress an image file using the jbig2.exe encoder. I can easily execute the jbig2.exe from the command line ex: >jbig2.exe C:\images\image.jpg. However I am trying to write a Java code that will invoke the jbig2.exe using a…
vpointer
  • 71
  • 7
0
votes
0 answers

Use JBIG compression, Matlab, compression of a bit stream

I'm having trouble with implementing a JBIG compression of a array of bits. I want to do JBIG compression, as found here: http://www.cl.cam.ac.uk/~mgk25/jbigkit/ So I have downloaded the kit into my Matlab workspace and added it to the build path. I…
bonapart3
  • 469
  • 7
  • 20
-1
votes
1 answer

To encode image using jbig2enc

I am trying to encode image using JBIG2 encoder that I have installed using Macports. https://ports.macports.org/port/jbig2enc/ I have also installed leptonica from Macports: https://ports.macports.org/port/leptonica/ The system seems to have…
1
2