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" },