summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-05-02 18:59:49 +0200
committerRaindropsSys <contact@minteck.org>2023-05-02 18:59:49 +0200
commit8cdbff7146e81546143f1f54e75bfd0eb34d17a0 (patch)
tree47cd0d41c8b34676982d30cec934d5e2080ea9ff /includes
parent59b56c2283c12c8a82144a836faee4f12b15e5c1 (diff)
downloadpluralconnect-8cdbff7146e81546143f1f54e75bfd0eb34d17a0.tar.gz
pluralconnect-8cdbff7146e81546143f1f54e75bfd0eb34d17a0.tar.bz2
pluralconnect-8cdbff7146e81546143f1f54e75bfd0eb34d17a0.zip
Updated 3 files and added 2 files (automated)
Diffstat (limited to 'includes')
-rw-r--r--includes/external/matrix/index.js4
-rw-r--r--includes/util/functions.inc2
2 files changed, 3 insertions, 3 deletions
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");
diff --git a/includes/util/functions.inc b/includes/util/functions.inc
index fe97980..16e2bdd 100644
--- a/includes/util/functions.inc
+++ b/includes/util/functions.inc
@@ -13,7 +13,7 @@ if (!function_exists("createJob")) {
"date" => date('c')
];
- file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/jobs/" . round(microtime(true) * 1000) . "-" . random() . ".json", json_encode($job));
+ file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/jobs/" . round(microtime(true) * 1000000) . "-" . random() . ".json", json_encode($job));
}
}