fix: width/height was not being passed into imageToJson

This commit is contained in:
Soph :3 2025-09-27 19:47:52 +03:00
parent 25d1b0f185
commit 7f5fc580d0

View file

@ -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);