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