userinfo: await

This commit is contained in:
Cynthia Foxwell 2025-07-16 16:21:18 -06:00
parent eb0614378e
commit b023d6cb8f
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -515,7 +515,7 @@ userinfo.callback = async function (msg, line) {
const static = await fetch(imageUrl)
.then((res) => res.arrayBuffer())
.then((b) => Buffer.from(b));
const metadata = sharp(static).metadata();
const metadata = await sharp(static).metadata();
const bg_light = nameplateBackground(metadata.width, metadata.height, palette.lightBackground, true);
bg_light.composite([{input: static}]);