Convert HEIC to JPG , using php or JS

Dmitriy picture Dmitriy · Oct 15, 2017 · Viewed 17.3k times · Source

Anyone tried to convert a heic to jpg?

I looked at the official repository, but I did'nt understand how it works. All examples in the repository are working. But when I try to process my photo, made on the iphone, the script refuses to process it.

Answer

Alex C. picture Alex C. · Jun 7, 2019

I've had some luck recently with the conversion using libheif. So I made this library which should greatly simplify the whole process

https://github.com/alexcorvi/heic2any

The only caveat is that the resulting PNG/JPG doesn't retain any of the meta-data that were in the original HEIC.