0.0.1 • Published 11 months ago
libheic v0.0.1
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