summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsebd <>2006-02-24 11:38:57 (GMT)
committersebd <>2006-02-24 11:38:57 (GMT)
commitc84edf23807ccd26ce6e5aa27230e6521264f2fd (patch)
tree22fdca5a8663c07854381e3d873d1b03a4218d36
parenta4472a42316106d1183ebaabde17c9cd0809eebc (diff)
downloadexpression-c84edf23807ccd26ce6e5aa27230e6521264f2fd.zip
expression-c84edf23807ccd26ce6e5aa27230e6521264f2fd.tar.gz
expression-c84edf23807ccd26ce6e5aa27230e6521264f2fd.tar.bz2
Using inkscape rather than svg2png because inkscape is available in Debian Sarge.
-rw-r--r--src/modules/svg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/svg.py b/src/modules/svg.py
index 2fd4745..729c44d 100644
--- a/src/modules/svg.py
+++ b/src/modules/svg.py
@@ -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)