Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants