-
Notifications
You must be signed in to change notification settings - Fork 14
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
Small difference in compressionratio #31
Comments
Thanks for the detailed explanation in the other issue, hope it wasn't too painful to get it all going (on Ubuntu I got jbig2enc from https://notesalexp.org/packages/en/bionic/amd64/jbig2enc/download.html, on Gentoo - my main system, it's just in the package manager). Going forward I will try to make a Differences in compression ratio might not signal a problem. There could be a few reasons:
I just upgraded my jbig2enc to 0.29 and it doesn't make a difference. If you can share your output PDF with me I can compare. I used the files from your |
It is very unlikely that the problem is a memory leak, for what it's worth. |
Here is the PDF I get, for what it is worth. |
The exact download of Kakadu I used is specified in my commands. I'll compare the contained jp2-images when I get the chance. |
The relevent part of Kakadu consists of kdu_compress, kdu_extract and one shared library you can find with
|
I tried kakadu 8.0.5 as opposed to 8.0.3 that I had and the result is the same, I get the same PDF, the only difference is the kakadu version encoded in tjhe JPEG2000, XMP metadata and PDF IDs, compression ratio is still Maybe it's just a floating point thing. If you can share the PDF I can diff, or look at the differences between the one I shared and yours. |
This is the pdf from the build I made: |
There are differences between your file and mine in the size of the pictures:
|
Well, it looks like they are clearly different. It is possible that the sauvola binarisation code results in slightly different masks (since it's compiled with The current code also has an option to dump these items to a directory when creating the PDF ( |
See my post after the closed #30
There is a small compression-ratio difference between your and my setup. Could that signal a memory-leak, or some other difference in setup?
The text was updated successfully, but these errors were encountered: