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 };