[git fast commit] 06. Aug 2021 - 19:18:35

This commit is contained in:
Yannik Schmidt
2021-08-06 19:18:35 +02:00
parent feabe9b1b9
commit 27c4ae843d

View File

@@ -96,6 +96,9 @@ def sendPicture(path):
scaleX = round(float(x2)) scaleX = round(float(x2))
pathDebug = path pathDebug = path
if path.endswith(".svg")
return flask.send_from_directory(".", path)
encoding = flask.request.args.get("encoding") encoding = flask.request.args.get("encoding")
path, cacheHit = generatePicture(path, scaleX, scaleY, encoding, path, cacheHit = generatePicture(path, scaleX, scaleY, encoding,
bool(flask.request.args.get("crop"))) bool(flask.request.args.get("crop")))