Foliotek / Croppie

A Javascript Image Cropper
http://foliotek.github.io/Croppie
MIT License
2.57k stars 884 forks source link

Croppie supporting HEIC image format? #763

Open sipritch opened 3 years ago

sipritch commented 3 years ago

Hi all -

First post here, so please treat me gently!

Have got Croppie up and running and works a treat, for everything except selected files with the .HEIC extension. Once loaded, it gives no preview and the save control becomes greyed out.

My understanding was that Croppie would load any image file, which could then be processed and outputted (in my case, always as a JPG).

For 97% of users, it works perfectly as is, but for the Apple fans who insist on using .HEIC, I ideally need to give them an alternative solution other than a message along the lines of "use the same format as the rest of the world" (which is what I want to say).

Thanks in advance and amazing work from the community in getting this up and running.

01CodeLT commented 3 years ago

I highly doubt this package would begin supporting heic files directly especially since the plugin uses a HTML canvas which doesn't support this file format. I'd recommend converting the image to a jpeg or png using a library like this https://alexcorvi.github.io/heic2any/ and then bind it to the croppie instance.