Skip to content

devMYC/heif-to-jpeg-demo

Repository files navigation

The demo uses libheif

Run the demo

Node.js demo

$ yarn  # or npm install
$ node demo.js

Web demo

$ node server.js  # default port 8000, or use PORT environment variable to specify a different port.

Open your browser and go to http://localhost:<port>/demo.html.

Express + Multer demo

$ yarn  # or npm install
$ node express-demo.js  # default port 8000, or use PORT environment variable to specify a different port.

In a new terminal window

$ curl http://localhost:<port>/img/upload -F file=@somefile.ext

To view the uploaded image, copy the file_name returned and send a GET request to http://localhost:<port>/img/<file_name> in your browser.

About

Convert HEIF image to JPEG

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published