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

Support resize image and change image quality #120

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Support resize image and change image quality #120

wants to merge 3 commits into from

Conversation

tuanchauict
Copy link

@tuanchauict tuanchauict commented Aug 2, 2019

Currently, we only download and save images directly from the server. However, sometimes, images from Safaribooks are high quality with big size which almost unnecessary for reading on e-reader devices. This PR adds --image-max-size and --image-quality for resizing images as well as changing JPEG image quality.

For my situation, when applying max size to 1024 and image quality to 40, the size of epub down from 144.5 MB to 28.7 MB (book id: 9780134492513)

TODO: Update README

@tuanchauict tuanchauict changed the title Support resize image and change image quality (for JPEG) Support resize image and change image quality Aug 2, 2019
@lorenzodifuccia
Copy link
Owner

Good PR, needs some tests...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants