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

Added compressed PNG support for PDF output using the updf-js library. #487

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

skalamichal
Copy link

Created update to add compressed PNG support directly in html2pdf library without the need to use canvas-png-compression shim. It respects the image quality, where 0, 1 are considered lossless and values between are lossy, changing the quality to number of colors used in the PNG, between 4 to 256 colors.

@skalamichal
Copy link
Author

I see four commits that are in the pull request, but only the first one was supposed to go in.

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

Successfully merging this pull request may close these issues.

1 participant