mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 03:26:16 +00:00
Optimise loading and reduce image size
This commit is contained in:
parent
df2b2091ec
commit
16df5bc255
9 changed files with 59 additions and 25 deletions
|
@ -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"]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue