How to add support for HEIC images with ImageMagick in PHP

How to add support for HEIC images with ImageMagick in PHP

What about extracting image data? (EXIF)

Yeah, you probably can’t extract EXIF data from HEIC images at this time, but the conversion we did above does copy the image data. To our surprise, it works only if we’re converting to JPG images. It didn’t work with PNG, and we haven’t tried with other formats. So once you have the converted image in PHP, just go with $image->exif() and you should be just fine.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Geni Jaho

Geni Jaho

Full-stack web developer with a passion for software architecture and programming best practices.