From 4db1e2b540c92d3a9833642887f7a4ac79b2eb52 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Wed, 26 Feb 2020 15:51:00 -0700 Subject: use a different svg renderer? --- bot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.js b/bot.js index 5c17efd..4535c1b 100644 --- a/bot.js +++ b/bot.js @@ -186,8 +186,8 @@ module.exports = { } const svg = '\n' + dom.serialize(); fs.writeFileSync(path + '.svg', svg); - console.log('convert', '-background', 'none', path + '.svg', path + '.png'); - child_process.spawnSync('convert', ['-background', 'none', path + '.svg', path + '.png'], {stdio: ['inherit', 'inherit', 'inherit']}); + console.log('rsvg-convert', '--format=png', '--output=' + path + '.png', path + '.svg'); + child_process.spawnSync('rsvg-convert', ['--format=png', '--output=' + path + '.png', path + '.svg'], {stdio: ['inherit', 'inherit', 'inherit']}); } if (type === 'mp4') { let background = STYLES[style].video; -- cgit v1.2.3