Skip to content

Commit

Permalink
updating to heic-decode@2 (uses libheif wasm version)
Browse files Browse the repository at this point in the history
  • Loading branch information
catdad committed Nov 9, 2023
1 parent a9f7e96 commit 97d76f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
});
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit 97d76f8

Please sign in to comment.