Forgot to save the image
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Michel Roux 2023-01-12 17:35:02 +01:00
parent d350e48bd5
commit 091e8413d5

View File

@ -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):