From 7f5fc580d01887a9a3f7966ae4d73090a1994322 Mon Sep 17 00:00:00 2001 From: yourfriendoss Date: Sat, 27 Sep 2025 19:47:52 +0300 Subject: [PATCH] fix: width/height was not being passed into imageToJson --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 96cd1ce..c88ab4b 100644 --- a/index.js +++ b/index.js @@ -122,8 +122,8 @@ ws.addListener("ping", async (id, uuid, args) => { const arrayBuffer = await blob.arrayBuffer(); const imageJson = await imageToJson(new Uint8Array(arrayBuffer), { - width: 20, - height: 20, + width, + height, keepRatio: false, }); const packedImage = pack_image(imageJson.json);