This commit is contained in:
Dragon Fire
2020-04-19 17:19:00 -04:00
parent aebc48584d
commit c2f04d7799
2 changed files with 1 additions and 1 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

+1 -1
View File
@@ -44,7 +44,7 @@ module.exports = class PoliceTapeCommand extends Command {
const canvas = createCanvas(data.width, data.height);
const ctx = canvas.getContext('2d');
ctx.drawImage(data, 0, 0);
const { x, y, width, height } = centerImage(data, base);
const { x, y, width, height } = centerImage(base, data);
ctx.drawImage(base, x, y, width, height);
const attachment = canvas.toBuffer();
if (Buffer.byteLength(attachment) > 8e+6) return msg.reply('Resulting image was above 8 MB.');