play-with-sharp-and-libheif
Image converter playground.
Included examples
- Converts
.heic
(HEIF) file into.jpg
(JPEG) bylibheif.js
andnode-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
libheif.js
- libheif- Example rotated JPEG image - exif-orientation-examples
Image resizer
- sharpCanvas implementation for Node.js
- node-canvas