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

Compression ratio 0.19% #40

Open
sanderjson opened this issue Mar 28, 2020 · 6 comments
Open

Compression ratio 0.19% #40

sanderjson opened this issue Mar 28, 2020 · 6 comments

Comments

@sanderjson
Copy link

sanderjson commented Mar 28, 2020

Hello I am trying to compress a pdf from the unicli. Everything appears to be working however the compression is negligible (0.19%). This pdf does contain some large images - so I am not sure if there is something wrong with my command.

The watermark does show up as expected on each page.

$ ./unipdf optimize /path/to/myLargeFile.pdf -q 75 -P 100
Optimizing /path/to/myLargeFile.pdf
Unlicensed copy of unidoc
To get rid of the watermark - Please get a license on https://unidoc.io
Original: /path/to/myLargeFile.pdf
Original size: 211795879 bytes
Optimized: /path/to/myLargeFile_optimized.pdf
Optimized size: 212193033 bytes
Compression ratio: -0.19%
Processing time: 2957.33 ms
Status: success
----------
@gunnsth
Copy link
Contributor

gunnsth commented Mar 30, 2020

@sanderjson Can you share the PDF file so we can check? Also might be worth updating the unipdf for the repository to latest version.

@gunnsth
Copy link
Contributor

gunnsth commented Mar 31, 2020

@sanderjson We have updated unipdf-cli to newest unipdf. Can you try again?
And we do need the file in order to debug this.

@sanderjson
Copy link
Author

sanderjson commented Mar 31, 2020 via email

@sanderjson
Copy link
Author

ok I have downloaded the latest version and I have tried optimizing a few different files with similar results. One pdf I tried to opimize resulted in 0.18% through the unipdf-cli but when I dropped it into a compressor website (https://pdfcompressor.com/) it reduced by 98%.

This document for example link compressed ~ 6% with the unipdf-cli but 31% with the online compressor.

Could this be due to an error in my installation?

@gunnsth
Copy link
Contributor

gunnsth commented Nov 12, 2023

@sanderjson We need access to the uncompressed input file in order to investigate that.
Sorry about the late reply. Was just going through some old issues and seems like this had not been followed up on.

@sanderjson
Copy link
Author

Thank you for following up, feel free to close.

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

No branches or pull requests

2 participants