alexcorvi / heic2any

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

Getting error when try to convert a HEIC file from iphone 15 Pro/ Pro Max with iOS 18 #61

Open jlTorresAdCentral opened 2 weeks ago

jlTorresAdCentral commented 2 weeks ago

heif_error_code_heif_error_Invalid_input

Error converting HEIC to jpeg: {code: 2, message: 'ERR_LIBHEIF format not supported'}

MNU-497 commented 1 week ago

I can confirm this error on our platform as well. A typical heif image from an iPhone running IOS 18 was taken today and tested against the library alexcorvi/heic2any, and it failed to convert.

AJLoveChina commented 1 week ago

The issue is resolved in https://github.com/strukturag/libheif/issues/1190

@alexcorvi we need to rebuild the libheif.js

mvn-sinhtao-dn commented 5 days ago

The issue is resolved in strukturag/libheif#1190

@alexcorvi we need to rebuild the libheif.js

Hi @alexcorvi , @AJLoveChina

Thanks a lot for providing the useful library that our digital product has been using over the months.

We've recently received several reports from our customers saying it's failed to proceed the photos taken by their iPhone15 Pro under iOS18. We try reproducing the issue on the following iOS devices and confirm it failed to convert HEIC photos taken from iPhone 15 Pro running iOS: • 16pro iOS 18.0 4G → 100% OK • 15pro iOS 17.4 4G → 100% OK • 15pro iOS 18.0 4G → 3 OK, 7 Error • 15pro iOS 18.0 4G → 3 OK, 7 Error • 15pro iOS 18.0 4G → 1 OK, 6 Error • 15plus iOS 17.6.1 Wifi → 100% OK • 15plus iOS 17.6.1 Wifi → 100% OK • 14 iOS 18.0 4G → 100% OK • 13pro iOS 17.6.1 4G → 100% OK • 11 iOS 18.0 Wifi → 100% OK • 8plus iOS 15.2 Wifi → 100% OK • iPad4 iOS 18.0 Wifi → 100% OK

As converting HEIC photos is an important step to our product, and to void impacts to our customers as much as possible, could you please consider rebuilding the lib? Or share with us your plan on rebuilding the lib, if possible?

Looking forwards to receiving your reply. Thanks in advance!

AJLoveChina commented 23 hours ago

Hi @mvn-sinhtao-dn , I create a solution based on libheif, using wasm to convert heic format image. It's about 20% faster than pure javascript. And it supports heic from IOS 18

Here is the library : https://github.com/AJLoveChina/libheic

mvn-sinhtao-dn commented 20 hours ago

Hi @AJLoveChina

Thanks a lot for your response! I'll give it a try and let you know the result once it's done.