Fix svg drawing generation
This commit is contained in:
parent
a1bc3acd5d
commit
58e869c969
1 changed files with 1 additions and 1 deletions
|
@ -504,7 +504,7 @@ class DrawingHandler(tornado.web.RequestHandler):
|
|||
if extension == "svg":
|
||||
self.set_header("Content-Type", "image/svg+xml")
|
||||
self.write(drawing.get_animation().get_as_svg())
|
||||
if extension == "png":
|
||||
elif extension == "png":
|
||||
self.set_header("Content-Type", "image/png")
|
||||
svgstring =drawing.get_animation().get_as_svg()
|
||||
self.write(cairosvg.svg2png(bytestring = svgstring))
|
||||
|
|
Loading…
Reference in a new issue