forked from MarseyWorld/MarseyWorld
fdfd
parent
c7bba5b51c
commit
07fd24ebd1
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue