Using inkscape rather than svg2png because inkscape is available in Debian Sarge.

This commit is contained in:
sebd 2006-02-24 11:38:57 +00:00
parent a4472a4231
commit c84edf2380
1 changed files with 1 additions and 1 deletions

View File

@ -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)