-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting error when try to convert a HEIC file from iphone 15 Pro/ Pro Max with iOS 18 #61
Comments
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. |
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. 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? Looking forwards to receiving your reply. |
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 |
Hi @AJLoveChina Thanks a lot for your response! |
Hi @AJLoveChina Thanks for your solution
The console.log 1 works fine and displays the wasmBinary's value, but console.log 2 doesn’t show anything. It seems there is an error when calling |
HI @phuviet , can you attach the error picture? And we should export HeifConvert in |
I have exported HeifConvert from |
After checking many times, I realized that this code works fine on iOS mobile devices (current is iPhone 11 Pro) but does not work on Android or MacBook devices. You can check the images below for the error. |
Any updates on when we can expect a new release to address this issue? |
@mvn-vietnguyen-dn it looks fine on my android/macPro device. Have you tried my demo on your device? |
I believe for this to be fixed for the library, we'd just need an updated libheif.js file in src/libheif.js with the updated libheif version that fixes this issues with iOS 18. I don't have the necessary skills to replace the libheif.js with what it should be, as I believe it comes from a thing called emscripten, but not sure |
heif_error_code_heif_error_Invalid_input
Error converting HEIC to jpeg: {code: 2, message: 'ERR_LIBHEIF format not supported'}
The text was updated successfully, but these errors were encountered: