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

Compress images such that resulting PDF ≤ target size #6

Open
mLuby opened this issue Jul 3, 2018 · 2 comments
Open

Compress images such that resulting PDF ≤ target size #6

mLuby opened this issue Jul 3, 2018 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@mLuby
Copy link
Owner

mLuby commented Jul 3, 2018

await imagesToPdf(["path/to/image1.jpg", "path/to/image2.png"], "path/to/combined.pdf", 10)
// path/to/combined.pdf now exists and is ≤ 10MB.

❓ Compress all images equally or compress biggest?

@mLuby mLuby added the enhancement New feature or request label Jul 3, 2018
@mLuby mLuby changed the title Add ability to compress images such that resulting PDF ≤ target size Compress images such that resulting PDF ≤ target size Jul 3, 2018
@mLuby mLuby added the help wanted Extra attention is needed label Feb 21, 2019
@arleyGuoLei
Copy link

help wanted, how to compress?

@mLuby
Copy link
Owner Author

mLuby commented Sep 13, 2022

This library is deprecated (see README).
This issue is labelled help wanted because the library doesn't currently do this "compress to target size" behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants