|
@@ -120,7 +120,8 @@ async function processFaceSwap(message, attachmentUrl) {
|
|
|
let ew = emojiImage.getWidth();
|
|
|
let eh = emojiImage.getHeight();
|
|
|
|
|
|
- let scaleFactor = Math.max(bw, bh) / Math.max(ew, eh);
|
|
|
+ const CONSTANT_SCALE = 1.5;
|
|
|
+ let scaleFactor = Math.max(bw, bh) / Math.min(ew, eh) * CONSTANT_SCALE;
|
|
|
ew *= scaleFactor;
|
|
|
eh *= scaleFactor;
|
|
|
|