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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add compresslevel #273

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add compresslevel #273

wants to merge 1 commit into from

Conversation

judelgadoc
Copy link

Hi 馃槃, this PR resolves #271

Usage of the changes:

epub.write_epub('test.epub', book, {"compresslevel": 9})

Allowed values for compresslevel are 0 to 9 - see ZipFile docs
The default value is 6, it's also possible to use None with same effect

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.

Way to increase compression rate
1 participant