fix(app/metrics): imgb64 resizing

This commit is contained in:
lowlighter committed 2022-07-01 20:29:45 -04:00
1 parent 0f4dede0e4
commit 92a7bf212d
1 file changed
+1 -1
+1 -1
View File
@@ -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")}`
}