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

Use sync version of zlib deflate method to compress png images #889

Merged
merged 3 commits into from
Dec 23, 2018

Conversation

blikblum
Copy link
Member

This reduces the memory usage when loading many png files. It should fix #861

Raw performance between sync and async versions are roughly the same around 6s to run the png-benchmark.js

Added unit tests

This is a preparation to fix #339

@blikblum blikblum merged commit eb60ed1 into foliojs:master Dec 23, 2018
@blikblum blikblum deleted the png-sync branch December 23, 2018 01:15
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.

grayscale PNG with transparent background gets garbled Memory issue with creating a doc with a lot of images
1 participant