Resize images to max 512px in resolution

This commit is contained in:
Michał Gdula 2023-06-23 13:49:28 +01:00
parent fdac4dc402
commit a5143f9335
5 changed files with 23 additions and 11 deletions

View file

@ -3,7 +3,7 @@ from os import getenv
UPLOAD_DIR = "/data/uploads"
UPLOAD_EXTENSIONS = ["png", "jpg", "jpeg", "gif"]
UPLOAD_RESOLUTION = (512, 512)
UPLOAD_RESOLUTION = 512
UPLOAD_MAX_SIZE = 3 * 1024 * 1024 # 3MB
GAME_VERSION = "alpha"