updating to heic-decode@2 (uses libheif wasm version)

This commit is contained in:
Kiril Vatev 2023-11-09 18:23:41 -05:00
parent a9f7e96541
commit 97d76f8cee
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ const convertImage = async ({ image, format, quality }) => {
return await to[format]({ return await to[format]({
width: image.width, width: image.width,
height: image.height, height: image.height,
data: Buffer.from(image.data), data: image.data,
quality: Math.floor(quality * 100) quality: Math.floor(quality * 100)
}); });
}; };

View File

@ -38,7 +38,7 @@
"rootrequire": "^1.0.0" "rootrequire": "^1.0.0"
}, },
"dependencies": { "dependencies": {
"heic-decode": "^1.1.2", "heic-decode": "^2.0.0",
"jpeg-js": "^0.4.4", "jpeg-js": "^0.4.4",
"pngjs": "^6.0.0" "pngjs": "^6.0.0"
}, },