Optimise loading and reduce image size

This commit is contained in:
Michał Gdula 2023-04-22 10:29:57 +00:00
parent df2b2091ec
commit 16df5bc255
9 changed files with 59 additions and 25 deletions

View file

@ -33,7 +33,7 @@ def generate_thumbnail(file_path, resolution, ext=None):
if resolution in ["prev", "preview"]:
res_x, res_y = (1920, 1080)
elif resolution in ["thumb", "thumbnail"]:
res_x, res_y = (400, 400)
res_x, res_y = (300, 300)
elif resolution in ["pfp", "profile"]:
res_x, res_y = (150, 150)
elif resolution in ["icon", "favicon"]: