This commit is contained in:
Dragon Fire
2020-05-04 14:38:24 -04:00
parent 71bfb1f90d
commit ea3aee4689
+1 -1
View File
@@ -55,7 +55,7 @@ module.exports = class SkyrimSkillCommand extends Command {
const base = await loadImage(body);
const plate = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'skyrim-skill.png'));
const scaleH = plate.width / base.height;
const height = Math.round(base.height * scaleH);
const height = Math.round(base.height / scaleH);
const canvas = createCanvas(plate.width, plate.height + height);
const ctx = canvas.getContext('2d');
ctx.drawImage(base, 0, 0, plate.width, height);