agl / jbig2enc

JBIG2 Encoder
Other
251 stars 86 forks source link

Error on lossy jbig2 encoding #73

Open Tingwb opened 2 years ago

Tingwb commented 2 years ago

Hi,

With lossy compression I get error result, the image in the attached file missing some paths. the attached file is as follows: 0005707_spring hill00021.pdf

The encoding result is as follows: the original image on the left and the resulting image on the right. This is the result of reversing image data and then doing JBIG2 compression. Jbig2_FirstResverDataThenEncoding.pdf jbig2

If the image data is not reversed, jbig2 encoded results processed by PDF decode are as follows: Jbig2_NoResverDate.pdf image image

I do not now how to deal with it. Any help will be very much appreciated.