Scale the images down so they aren't as huge

This commit is contained in:
Kuba Orlik 2022-06-19 13:52:43 +02:00
parent 535535efd3
commit baec58fd42

View File

@ -79,6 +79,7 @@ with Image.open(output_file) as im:
anchor="rm",
font=font,
)
im = im.resize((im.width // 2, im.height // 2))
im.save(output_file, "PNG")
print(json.dumps({"new_file":
{"url": base_url + "/static/" + output_file_relative,