Using inkscape rather than svg2png because inkscape is available in Debian Sarge.
This commit is contained in:
parent
a4472a4231
commit
c84edf2380
|
@ -60,7 +60,7 @@ class SVG(things.Thing):
|
|||
file.write("""<?xml version="1.0"?>\n%s""" % self.serialize())
|
||||
file.flush()
|
||||
outfile = file.name + ".temp"
|
||||
os.system("svg2png < %s > %s" % (file.name, outfile))
|
||||
os.system("inkscape -e %s -z %s" % (outfile, file.name))
|
||||
environs.getVar("httpRequestHandler").outputData(open(outfile).read(), mimeType = "image/png")
|
||||
os.unlink(outfile)
|
||||
|
||||
|
|
Reference in New Issue