mirror of
https://github.com/catdad-experiments/heic-convert
synced 2024-11-22 19:10:45 +00:00
updating to heic-decode@2 (uses libheif wasm version)
This commit is contained in:
parent
a9f7e96541
commit
97d76f8cee
2
index.js
2
index.js
@ -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)
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -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"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user