Croppie icon indicating copy to clipboard operation
Croppie copied to clipboard

Can croppie be updated to support heic files?

Open xxxmicrobexxx opened this issue 2 years ago • 2 comments

Croppie is great, but it doesn't support heic images. Any chance of adding that functionality?

xxxmicrobexxx avatar Dec 19 '22 23:12 xxxmicrobexxx

From what I understand about Croppie, which I admit is limited my own use and knowledge of JavaScript, it seems like a trivial change to line 1398:

RESULT_FORMATS = ['jpeg', 'webp', 'png', 'heic'];

I personally always pull png and use PHP to convert to the desired destination format. Even PHP doesn't yet support heic, though you can call imagemagick to convert. Since Croppie works internally with "canvas" and not a particular image format, any browser-supported output format should work simply by adding it to the allowed list of result formats.

I could do a pull request for the change but I don't have a good way to test it. And I don't have any permission to merge the pull request back in so I'm not sure it would ever be included. The last included change was in April 2019. So while Croppie still works great, it seems to be a relatively dead project.

bret-miller avatar Dec 20 '22 13:12 bret-miller

Duplicate of #763

Forage avatar Jan 20 '23 19:01 Forage