/play-with-sharp-and-libheif

Image converter playground.

Primary LanguageJavaScriptMIT LicenseMIT

play-with-sharp-and-libheif

Image converter playground.

Included examples

  • Converts .heic (HEIF) file into .jpg (JPEG) by libheif.js and node-canvas
  • Do fix rotated images and resize by sharp

How to develop

# Fetch libheif.js from Github, Because `libheif.js` not yet published to npm.
wget https://raw.githubusercontent.com/strukturag/libheif/gh-pages/libheif.js -O ./vendor/libheif.js

# Install other dependencies
npm i

# Run example
npm start

Credits