Scale the images down so they aren't as huge
This commit is contained in:
parent
535535efd3
commit
baec58fd42
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user