heic-decode
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "heic-decode", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Decode HEIC images to raw data", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -27,2 +27,3 @@ # heic-decode | ||
const fs = require('fs'); | ||
const { promisify } = require('util'); | ||
const decode = require('heic-decode'); | ||
@@ -44,2 +45,3 @@ | ||
const fs = require('fs'); | ||
const { promisify } = require('util'); | ||
const decode = require('heic-decode'); | ||
@@ -49,3 +51,3 @@ | ||
const buffer = await promisify(fs.readFile)('/path/to/my/multi-image.heic'); | ||
const images = decode.all({ buffer }); | ||
const images = await decode.all({ buffer }); | ||
@@ -52,0 +54,0 @@ for (let image of images) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5313
72