mirror of
https://github.com/catdad-experiments/heic-convert
synced 2024-11-22 10:05:09 +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]({
|
||||
width: image.width,
|
||||
height: image.height,
|
||||
data: Buffer.from(image.data),
|
||||
data: image.data,
|
||||
quality: Math.floor(quality * 100)
|
||||
});
|
||||
};
|
||||
|
@ -38,7 +38,7 @@
|
||||
"rootrequire": "^1.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"heic-decode": "^1.1.2",
|
||||
"heic-decode": "^2.0.0",
|
||||
"jpeg-js": "^0.4.4",
|
||||
"pngjs": "^6.0.0"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user