From 9f157905585b3fcfee909ddd1f44e5dd1eb4fb4b Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 22 Mar 2021 18:23:32 -0400 Subject: [PATCH] Fix --- util/Util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/Util.js b/util/Util.js index b2e3dd28..b4ef88a8 100644 --- a/util/Util.js +++ b/util/Util.js @@ -221,7 +221,7 @@ module.exports = class Util { static async isImageNSFW(model, image, bool = true) { const dimensions = sizeOf(image); const data = { - data: new Uint8Array(image), + data: image, width: dimensions.width, height: dimensions.height };