-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Description
intro-outro-generator/renderlib.py
Lines 150 to 163 in 7760bc9
# open the output-file (named ".gen.svg" in the workdir) | |
with open(os.path.join(task.workdir, '.gen.svg'), 'w') as fp: | |
# write the generated svg-text into the output-file | |
fp.write( etree.tostring(svg, encoding='unicode') ) | |
if task.outfile.endswith('.ts'): | |
width = 1920 | |
height = 1080 | |
else: | |
width = 1024 | |
height = 576 | |
# invoke inkscape to convert the generated svg-file into a png inside the .frames-directory | |
cmd = 'cd {0} && inkscape --export-background=white --export-width={2} --export-height={3} --export-png=$(pwd)/.frames/{1:04d}.png $(pwd)/.gen.svg 2>&1 >/dev/null'.format(task.workdir, frameNr, width, height) |
Metadata
Metadata
Assignees
Labels
No labels