mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user