From 894840ef954869520c864151e871f444a6ca296c Mon Sep 17 00:00:00 2001 From: profitroll Date: Mon, 16 Oct 2023 05:50:32 +0000 Subject: [PATCH] Constant change due to #29 --- modules/sender.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/sender.py b/modules/sender.py index 07ff8dd..0c694e9 100644 --- a/modules/sender.py +++ b/modules/sender.py @@ -152,7 +152,7 @@ async def send_content(app: PyroClient, http_session: ClientSession) -> None: ) and func[0] is photo_random: image = Image.open(path.join(app.config["locations"]["tmp"], tmp_path)) width, height = image.size - image = image.resize((int(width / 2), int(height / 2)), Image.ANTIALIAS) + image = image.resize((int(width / 2), int(height / 2)), Image.LANCZOS) if tmp_path.lower().endswith(".jpeg") or tmp_path.lower().endswith(".jpg"): image.save( path.join(app.config["locations"]["tmp"], tmp_path),