This commit is contained in:
Daniel Odendahl Jr
2017-11-20 22:48:04 +00:00
parent af3e26e495
commit 7afa15a6ba
+1 -1
View File
@@ -57,7 +57,7 @@ module.exports = class DemotivationalPosterCommand extends Command {
const ctx = canvas.getContext('2d');
ctx.fillStyle = 'white';
ctx.fillRect(0, 0, base.width, base.height);
ctx.drawImage(data, 69, 44, 612, data.height);
ctx.drawImage(data, 69, 44, 612, data.height === data.width ? 612 : data.height > 412 ? data.height : 412);
ctx.drawImage(base, 0, 0);
ctx.textAlign = 'center';
ctx.font = '60px Noto';