alexcorvi / heic2any

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

Conversion slow #36

Closed uxcodev closed 1 year ago

uxcodev commented 2 years ago

Converting a 1.6mb HEIC image is taking about 5 seconds. Is this normal? And is there any way to speed it up?

My code: ... const start = window.performance.now(); let image = await heic2any({ blob:file }); const stop = window.performance.now(); console.log('Elapsed time for heic2any: ${(stop - start) / 1000}s'); ...

Result in console log: Elapsed time for heic2any: 5.121s

For the sake of comparison, I tried converting the same image to PNG before uploading, which resulted in a 14.6mb file and it still only took 0.1 seconds for the entire upload.

av01d commented 1 year ago

I experience the same. It's rather slow, but it works great. I just show a spinner/throbber to the user.

kinton commented 7 months ago

On my android it takes about 2 minutes with 3 Mb heic file