old intro (again)
This commit is contained in:
parent
62f85e5956
commit
2363e305a8
5 changed files with 101 additions and 140 deletions
|
@ -101,9 +101,9 @@ def renderFrame(infile, task, outfile):
|
|||
elif args.resvg:
|
||||
# invoke inkscape to convert the generated svg-file into a png inside the .frames-directory
|
||||
cmd = 'resvg --background white --width={1} --height={2} "{4}" "{3}" 2>&1 >/dev/null'.format(
|
||||
task.workdir, width, height, outfile, infile)
|
||||
task.workdir, width, height, os.path.abspath(outfile), os.path.abspath(infile))
|
||||
errorReturn = subprocess.check_output(
|
||||
cmd, shell=True, universal_newlines=True, stderr=subprocess.STDOUT, cwd=task.workdir)
|
||||
cmd, shell=True, universal_newlines=True, cwd=task.workdir)
|
||||
if errorReturn != '':
|
||||
print("resvg exited with error\n" + errorReturn)
|
||||
# sys.exit(42)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue