mirror of
https://github.com/FAUSheppy/python-flask-picture-factory
synced 2025-12-06 07:01:37 +01:00
[git fast commit] 06. Aug 2021 - 19:18:35
This commit is contained in:
@@ -96,6 +96,9 @@ def sendPicture(path):
|
||||
scaleX = round(float(x2))
|
||||
|
||||
pathDebug = path
|
||||
if path.endswith(".svg")
|
||||
return flask.send_from_directory(".", path)
|
||||
|
||||
encoding = flask.request.args.get("encoding")
|
||||
path, cacheHit = generatePicture(path, scaleX, scaleY, encoding,
|
||||
bool(flask.request.args.get("crop")))
|
||||
|
||||
Reference in New Issue
Block a user