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 arrayBuffer = await blob.arrayBuffer();
|
||||||
|
|
||||||
const imageJson = await imageToJson(new Uint8Array(arrayBuffer), {
|
const imageJson = await imageToJson(new Uint8Array(arrayBuffer), {
|
||||||
width: 20,
|
width,
|
||||||
height: 20,
|
height,
|
||||||
keepRatio: false,
|
keepRatio: false,
|
||||||
});
|
});
|
||||||
const packedImage = pack_image(imageJson.json);
|
const packedImage = pack_image(imageJson.json);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue