From baec58fd42057368d47ef0ef2a51c1bed40311bb Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Sun, 19 Jun 2022 13:52:43 +0200 Subject: [PATCH] Scale the images down so they aren't as huge --- Docker/annotate_header.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Docker/annotate_header.py b/Docker/annotate_header.py index a876569..fc3c2b5 100644 --- a/Docker/annotate_header.py +++ b/Docker/annotate_header.py @@ -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,