mirror of
https://github.com/FAUSheppy/python-flask-picture-factory
synced 2025-12-07 15:41:34 +01:00
implement svg support
This commit is contained in:
@@ -96,7 +96,7 @@ def sendPicture(path):
|
|||||||
scaleX = round(float(x2))
|
scaleX = round(float(x2))
|
||||||
|
|
||||||
pathDebug = path
|
pathDebug = path
|
||||||
if path.endswith(".svg")
|
if path.endswith(".svg"):
|
||||||
return flask.send_from_directory(".", path)
|
return flask.send_from_directory(".", path)
|
||||||
|
|
||||||
encoding = flask.request.args.get("encoding")
|
encoding = flask.request.args.get("encoding")
|
||||||
|
|||||||
Reference in New Issue
Block a user