remotes/1693045480750635534/spooky-22
Aevann1 2022-01-24 20:11:44 +02:00
parent c7bba5b51c
commit 07fd24ebd1
2 changed files with 7 additions and 7 deletions

View File

@ -32,7 +32,7 @@ app.config["SERVER_NAME"] = environ.get("DOMAIN").strip()
app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 86400
app.config["SESSION_COOKIE_NAME"] = "session_" + environ.get("SITE_NAME").strip().lower()
app.config["VERSION"] = "1.0.0"
app.config['MAX_CONTENT_LENGTH'] = 8 * 1024 * 1024
app.config['MAX_CONTENT_LENGTH'] = 99 * 1024 * 1024
app.config["SESSION_COOKIE_SECURE"] = True
app.config["SESSION_COOKIE_SAMESITE"] = "Lax"
app.config["PERMANENT_SESSION_LIFETIME"] = 60 * 60 * 24 * 365

View File

@ -14,12 +14,12 @@ def process_image(file=None, filename=None, resize=0):
else: i = IImage.open(filename)
except: return ""
# exif = i.getexif()
# for k in exif.keys():
# if k != 0x0112:
# exif[k] = None
# del exif[k]
# i.info["exif"] = exif.tobytes()
exif = i.getexif()
for k in exif.keys():
if k != 0x0112:
exif[k] = None
del exif[k]
i.info["exif"] = exif.tobytes()
if resize:
size = resize, resize