Compress cover
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Michel Roux 2023-03-05 16:50:34 +01:00
parent 41cbe3640e
commit 788e905b73

View File

@ -85,7 +85,9 @@ cover_req = get(
url="https://i0.wp.com/wanderinginn.com/wp-content/uploads/2023/03/Wandering_Inn-Vol1-eCover.jpg", # noqa: E501
stream=True,
)
Image.open(cover_req.raw).save(f"{OUTPUT_DIR}/cover.png")
cover_image = Image.open(cover_req.raw)
cover_image.thumbnail((1000, 2000))
cover_image.save(f"{OUTPUT_DIR}/cover.png")
def process_volume(epub: Epub, urls: List[str]):