diff --git a/commands/images/meme.js b/commands/images/meme.js index d85dadd7..e27bcf65 100644 --- a/commands/images/meme.js +++ b/commands/images/meme.js @@ -60,11 +60,11 @@ class memeCommand extends Command { // Create new graphicsmagick instance fetch(url) .then(res => { - const dest = fs.createWriteStream(`${os.tmpdir()}/${message.id}`); + const dest = fs.createWriteStream(`${os.tmpdir()}/${message.id}.png`); res.body.pipe(dest); dest.on('finish', async () => { - let img = gm(`${os.tmpdir()}/${message.id}`); + let img = gm(`${os.tmpdir()}/${message.id}.png`); // Set some defaults const TOP_TEXT = options[0]; diff --git a/commands/images/poster.js b/commands/images/poster.js index 5964cf95..50cd149d 100644 --- a/commands/images/poster.js +++ b/commands/images/poster.js @@ -77,11 +77,11 @@ class posterCommand extends Command { // Create new graphicsmagick instance fetch(url) .then(res => { - const dest = fs.createWriteStream(`${os.tmpdir()}/${message.id}`); + const dest = fs.createWriteStream(`${os.tmpdir()}/${message.id}.png`); res.body.pipe(dest); dest.on('finish', async () => { - let img = gm(`${os.tmpdir()}/${message.id}`); + let img = gm(`${os.tmpdir()}/${message.id}.png`); // Set some defaults const TOP_TEXT = options[0];