alexcorvi / heic2any

Converting HEIF/HEIF image formats to PNG/GIF/JPEG in the browser
https://alexcorvi.github.io/heic2any/
MIT License
585 stars 74 forks source link

Not working on Chrome for android #31

Closed Hajzenberg closed 1 year ago

Hajzenberg commented 2 years ago

It looks like call to heic2any in Chrome for android never finishes execution. Same on iOS.

const jpegBlob = await heic2any({ // required: the HEIF blob file blob: file, // (optional) MIME type of the target file // it can be "image/jpeg", "image/png" or "image/gif" // defaults to "image/png" toType: 'image/jpeg', // conversion quality // a number ranging from 0 to 1 quality: 0.5, });

Did anyone manage to make it work on mobile browsers?

FalconKul commented 2 years ago

maybe the following guide on StackOverflow can help you: https://stackoverflow.com/questions/64695144/angular-9-how-to-convert-heif-file-format-to-a-known-web-format-when-uploading/64695145#64695145