Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on lossy jbig2 encoding #73

Open
Tingwb opened this issue Nov 15, 2021 · 1 comment
Open

Error on lossy jbig2 encoding #73

Tingwb opened this issue Nov 15, 2021 · 1 comment

Comments

@Tingwb
Copy link

Tingwb commented Nov 15, 2021

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.

@zvezdochiot
Copy link
Contributor

Hi @zdenop .

This error does not occur in standalone mode, only in symbol mode.

Standalone mode:

jbig2 -a -p -D 200 -v plan01.tif > plan01.jbig2 && python3 jbig2topdf.py -s plan01.jbig2 > plan01.pdf
PDF Screen
plan01-posiztive.pdf screen-plot01-positive
plan01-negative.pdf screen-plot01-negative

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants