-
-
Notifications
You must be signed in to change notification settings - Fork 389
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
feat: add ePub thumbnail support (port #387) #539
Conversation
Co-Authored-By: Jorge Rui Da Silva Barrios <29062316+jorgerui@users.noreply.github.com>
tr = ThumbRenderer() | ||
cover_image: Image.Image = tr._epub_cover(file_path) | ||
|
||
assert cover_image is not None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest to make a test which will actually check the final result as well similarly as done here for pdf:
Co-Authored-By: yed <yedpodtrzitko@users.noreply.github.com>
Implemented the improved test 👍 I'll do the same for the other PRs as well. Also we're having unrelated issues with the pytest workflow, so these tests are going to fail here regardless until that's resolved |
nit: the |
This PR is a port of #387 which previously targeted
thumbnails
/Alpha-v9.4
tomain
(aka v9.5x).This adds thumbnail/preview support for ePub files.