Forgot to save the image
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d350e48bd5
commit
091e8413d5
4
books.py
4
books.py
@ -59,8 +59,10 @@ class MyChapter(Chapter):
|
||||
if img.attrib["src"].startswith("http"):
|
||||
img.getparent().remove(img)
|
||||
else:
|
||||
image = Image.open(f"{path.dirname(image_dir)}/{img.attrib['src']}")
|
||||
src = f"{path.dirname(image_dir)}/{img.attrib['src']}"
|
||||
image = Image.open(src)
|
||||
image.thumbnail((1000, 2000))
|
||||
image.save(src)
|
||||
|
||||
|
||||
def async_wrap(func):
|
||||
|
Reference in New Issue
Block a user