mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2024-12-28 02:16:07 +00:00
Add more resolution options
This commit is contained in:
parent
cd09b688c1
commit
26d65811f1
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue