From 97d76f8cee6ef4166c9b511113e655253a42c431 Mon Sep 17 00:00:00 2001 From: Kiril Vatev Date: Thu, 9 Nov 2023 18:23:41 -0500 Subject: [PATCH] updating to heic-decode@2 (uses libheif wasm version) --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index b04872f..9c33d5e 100644 --- a/index.js +++ b/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) }); }; diff --git a/package.json b/package.json index 7f31a4f..e6bc4e1 100644 --- a/package.json +++ b/package.json @@ -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" },