From 26d65811f1574feef729af56e41e4a7b64b1a66d Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Fri, 21 Apr 2023 16:21:47 +0000 Subject: [PATCH] Add more resolution options --- onlylegs/utils/generate_image.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/onlylegs/utils/generate_image.py b/onlylegs/utils/generate_image.py index 9710795..7e36a31 100644 --- a/onlylegs/utils/generate_image.py +++ b/onlylegs/utils/generate_image.py @@ -35,8 +35,10 @@ def generate_thumbnail(file_path, resolution, ext=None): res_x, res_y = (1920, 1080) elif resolution in ["thumb", "thumbnail"]: res_x, res_y = (400, 400) + elif resolution in ["pfp", "profile"]: + res_x, res_y = (200, 200) elif resolution in ["icon", "favicon"]: - res_x, res_y = (10, 10) + res_x, res_y = (25, 25) else: return None