libheif-js

Emscripten distribution of libheif for Node.JS and the browser

Usage no npm install needed!

<script type="module">
  import libheifJs from 'https://cdn.skypack.dev/libheif-js';
</script>

README

libheif-js

An Emscripten build of libheif distributed as an npm module for Node.JS and the browser.

github actions test npm-downloads npm-version

This module will respect the major and minor versions of the included libheif, with the patch version representing changes in this module itself. For the exact version of libheif, please see the install script.

Install

npm install libheif-js

Related

This module contains the low-level libheif implementation. For more user-friendly functionality, check out these projects:

  • heic-cli - convert heic/heif images to jpeg or png from the command line
  • heic-convert - convert heic/heif images to jpeg and png
  • heic-decode - decode heic images to raw image data