fix: width/height was not being passed into imageToJson
This commit is contained in:
parent
25d1b0f185
commit
7f5fc580d0
1 changed files with 2 additions and 2 deletions
4
index.js
4
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue