blueimp / JavaScript-Load-Image

Load images provided as File or Blob objects or via URL. Retrieve an optionally scaled, cropped or rotated HTML img or canvas element. Use methods to parse image metadata to extract IPTC and Exif tags as well as embedded thumbnail images, to overwrite the Exif Orientation value and to restore the complete image header after resizing.
https://blueimp.github.io/JavaScript-Load-Image/
MIT License
4.45k stars 923 forks source link

HEIC image support #117

Open batusai513 opened 4 years ago

batusai513 commented 4 years ago

Hi, I've been using this library for a while and it works really great, one thing that came up recently is to give HEIC image support, but when I try to load them, it cannot be done, it shows an error, it would be possible to add support for those images with this library?

Thanks.

blueimp commented 4 years ago

Thanks for your suggestion @batusai513.

I've marked this as a feature request, but it's likely that I will only add this if the HEIC format (HEIF) is natively supported by browsers.

There is the following library that supports converting HEIC images to JPEG/PNG/GIF on the client-side: https://github.com/alexcorvi/heic2any Unfortunately the distribution file for heic2any is more than a Megabyte in size.

See also: https://github.com/blueimp/jQuery-File-Upload/issues/3645

edent commented 3 years ago

You may be interested in https://github.com/exif-heic-js/exif-heic-js for reading HEIC EXIF metadata. It is a relatively small library.

blueimp commented 3 years ago

Thanks for sharing @edent. I think it's worth considering if reading HEIC EXIF metadata alone is worth it, but so far I still prefer to see if the format will get broad browser support first.

Aarbel commented 3 years ago

@blueimp do you support now heic files loading ? Would be really wonderfull

blueimp commented 2 years ago

Not yet supported unfortunately.