mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix blurry emoji
This commit is contained in:
@@ -52,6 +52,10 @@ module.exports = class EmojiFaceCommand extends Command {
|
||||
}
|
||||
const emojiData = await request.get(emojiURL);
|
||||
const emojiImg = await loadImage(emojiData.body);
|
||||
if (emojiURL.endsWith('svg')) {
|
||||
emojiImg.width *= 4;
|
||||
emojiImg.height *= 4;
|
||||
}
|
||||
const imgData = await request.get(image);
|
||||
try {
|
||||
const faces = await this.detect(imgData);
|
||||
|
||||
Reference in New Issue
Block a user