From 911f8770e78f12bef9add4d4a5e71cb2cb090f06 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Wed, 16 Apr 2014 10:12:30 +0200 Subject: [PATCH] employ inkscape - rsvg can't render floating-point-pixels, inkscape can. avoids stuttering in animations --- sotmeu14/make.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sotmeu14/make.py b/sotmeu14/make.py index 8101ce0..de62807 100755 --- a/sotmeu14/make.py +++ b/sotmeu14/make.py @@ -237,8 +237,8 @@ def render(infile, outfile, sequence, parameters={}, workdir='artwork'): # write the generated svg-text into the output-file fp.write( etree.tostring(svg) ) - # invoke rsvg to convert the generated svg-file into a png inside the .frames-directory - os.system('cd {0} && rsvg-convert .gen.svg > .frames/{1:04d}.png'.format(workdir, frameNr)) + # invoke inkscape to convert the generated svg-file into a png inside the .frames-directory + os.system('cd {0} && inkscape --export-png=.frames/{1:04d}.png .gen.svg >/dev/null 2>&1'.format(workdir, frameNr)) # incrwement frame-number frameNr += 1