From 8cdbff7146e81546143f1f54e75bfd0eb34d17a0 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Tue, 2 May 2023 18:59:49 +0200 Subject: Updated 3 files and added 2 files (automated) --- includes/external/matrix/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/external/matrix/index.js') diff --git a/includes/external/matrix/index.js b/includes/external/matrix/index.js index 1bfb8d4..b8ae194 100644 --- a/includes/external/matrix/index.js +++ b/includes/external/matrix/index.js @@ -66,8 +66,8 @@ client.once("sync", async function (state, prevState, res) { fs.writeFileSync("/tmp/chm-" + user + "-1", img1); fs.writeFileSync("/tmp/chm-" + user + "-2", img2); - child_process.execSync("convert /tmp/chm-" + user + "-1 -gravity center -crop 50%x100% /tmp/chm-" + user + "-1.webp"); - child_process.execSync("convert /tmp/chm-" + user + "-2 -gravity center -crop 50%x100% /tmp/chm-" + user + "-2.webp"); + child_process.execSync("convert /tmp/chm-" + user + "-1 -gravity center -resize 512x512 -crop 50%x100% /tmp/chm-" + user + "-1.webp"); + child_process.execSync("convert /tmp/chm-" + user + "-2 -gravity center -resize 512x512 -crop 50%x100% /tmp/chm-" + user + "-2.webp"); child_process.execSync("montage -mode concatenate -tile x1 /tmp/chm-" + user + "-1.webp /tmp/chm-" + user + "-2.webp /tmp/chm-" + user + ".webp"); pfp = fs.readFileSync("/tmp/chm-" + user + ".webp"); -- cgit