employ inkscape - rsvg can't render floating-point-pixels, inkscape can. avoids stuttering in animations

This commit is contained in:
MaZderMind 2014-04-16 10:12:30 +02:00
parent 0113e4b860
commit 911f8770e7

View file

@ -237,8 +237,8 @@ def render(infile, outfile, sequence, parameters={}, workdir='artwork'):
# write the generated svg-text into the output-file # write the generated svg-text into the output-file
fp.write( etree.tostring(svg) ) fp.write( etree.tostring(svg) )
# invoke rsvg to convert the generated svg-file into a png inside the .frames-directory # invoke inkscape 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)) os.system('cd {0} && inkscape --export-png=.frames/{1:04d}.png .gen.svg >/dev/null 2>&1'.format(workdir, frameNr))
# incrwement frame-number # incrwement frame-number
frameNr += 1 frameNr += 1