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

PDF file compression #13

Open
brandonnly opened this issue Feb 8, 2021 · 1 comment
Open

PDF file compression #13

brandonnly opened this issue Feb 8, 2021 · 1 comment

Comments

@brandonnly
Copy link

After conversion, there seems to be a lot of garbage in the pdf file. 200kb files bloating up over 10 times the size.

Could use something like pylovepdf to compress files before returning them. Found that it compressed it back to a few hundred KB on the lowest compression settings without any noticeable reduction in quality.

@keotl
Copy link
Owner

keotl commented Mar 17, 2021

Hi, thanks for the idea. Image compression would likely be possible, but I would offer it only as an option instead of being enabled by default. (Unless the compression is completely lossless, I can see that even the slightest artifacting could be an issue for some users when high accuracy is a requirement.)

Sadly, ilovepdf is not free/open source software, so I don't really want to use it directly in this project. A similar result should be achievable using image magick directly.

@keotl keotl changed the title Large File Sizes after Conversion PDF file compression Mar 17, 2021
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

2 participants