diff --git a/source/app/metrics/utils.mjs b/source/app/metrics/utils.mjs index c7d12dd4..3d4844e1 100644 --- a/source/app/metrics/utils.mjs +++ b/source/app/metrics/utils.mjs @@ -346,7 +346,7 @@ export async function imgb64(image, {width, height, fallback = true} = {}) { } //Resize image if ((width) && (height)) - image = image.resize(width, height) + image = image.resize({width: width > 0 ? width : null, height: height > 0 ? height : null}) return `data:image/${ext};base64,${(await image.toBuffer()).toString("base64")}` }