libheic
v0.0.1
Published
HEIC image decoder/encoder
Downloads
4
Readme
libheic
NAPI bindings for a HEIC image format decoder and encoder, integrating with ImageIO on macOS.
[!NOTE] The library is still in development and not ready for production. The API may change.
Installation
npm install libheic
API Usage
const heic = require("libheic");
const input = fs.readFileSync("image.png");
const output = heic.decode(input);
fs.writeFileSync("image.heic", Buffer.from(output));
CLI Usage
npx libheic image.png