This commit is contained in:
parent
41cbe3640e
commit
788e905b73
4
books.py
4
books.py
@ -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
|
url="https://i0.wp.com/wanderinginn.com/wp-content/uploads/2023/03/Wandering_Inn-Vol1-eCover.jpg", # noqa: E501
|
||||||
stream=True,
|
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]):
|
def process_volume(epub: Epub, urls: List[str]):
|
||||||
|
Reference in New Issue
Block a user