aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2020-02-26 15:51:00 -0700
committerGitHub <noreply@github.com>2020-02-26 15:51:00 -0700
commit4db1e2b540c92d3a9833642887f7a4ac79b2eb52 (patch)
treef2841a0d96e7bcd7cb5e7a2ad179358813891d30
parent6dc35b5e4766acc295bcc69b1e119bdddd43e13d (diff)
downloadcrabravebot-4db1e2b540c92d3a9833642887f7a4ac79b2eb52.tar.gz
crabravebot-4db1e2b540c92d3a9833642887f7a4ac79b2eb52.zip
use a different svg renderer?
-rw-r--r--bot.js4
1 files 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 = '<?xml version="1.0" encoding="UTF-8" standalone="no"?>\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;