mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 03:26:16 +00:00
Add more resolution options
This commit is contained in:
parent
cd09b688c1
commit
26d65811f1
1 changed files with 3 additions and 1 deletions
|
@ -35,8 +35,10 @@ def generate_thumbnail(file_path, resolution, ext=None):
|
||||||
res_x, res_y = (1920, 1080)
|
res_x, res_y = (1920, 1080)
|
||||||
elif resolution in ["thumb", "thumbnail"]:
|
elif resolution in ["thumb", "thumbnail"]:
|
||||||
res_x, res_y = (400, 400)
|
res_x, res_y = (400, 400)
|
||||||
|
elif resolution in ["pfp", "profile"]:
|
||||||
|
res_x, res_y = (200, 200)
|
||||||
elif resolution in ["icon", "favicon"]:
|
elif resolution in ["icon", "favicon"]:
|
||||||
res_x, res_y = (10, 10)
|
res_x, res_y = (25, 25)
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue