-
-
Notifications
You must be signed in to change notification settings - Fork 307
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
Unable to convert heic to jpg taken by iPhone 15 pro iOS18 #1190
Comments
Can you try with this branch: https://github.com/strukturag/libheif/tree/develop-v1.18.0 ? I think I have that resolved by 58ba30d |
With
Maybe the problem is that a referenced image is a |
For reference: the It sounds like it's ignored by I used GPAC/mp4box on one of the samples I have and I think at least the EXIF block reference both the primary image and the |
Yes, we even have a pull request to add On the other hand, we should probably ignore all references that we cannot parse because there might be other extensions in the future that give rise to the same issue. |
Fixes this. Gain map is not read yet. |
hi @farindk will this be added in next release cut? |
Yes, it will be in the v1.18.0 release. |
Please release it as soon as possible, IOS 18 photos require it. |
v1.18.0 is released |
@farindk Awesome, thanks a lot! I've tested Based on previous feedback, the orientation issues we observed earlier were supposed to be caused by a bug in an old iOS version well before iOS 17 - so this is unexpected: It seems possible that If so, should using
We would be very grateful for any advice on how we can solve the HEIC orientation issues for our users! 🙏 |
Note that I was able to fix the JPEG image orientation by simply setting the value of the Exif Orientation tag to 1 after new files have been generated with Based on my tests, there is still one HEIC image file where the generated JPEG has an incorrect orientation. However, since it is from an iPhone 7 and the camera software is displayed as "ProCam 10.5.8", I believe it is not a problem with Hopefully this information will help other developers who come across the same issue! 🤗 |
Issue might be fixed with e7c5649. What happened: I'll release an updated v1.18.2 in the coming days. BTW: I also noticed that there are some image width/height fields in the Exif that should also be swapped for rotated images. I've added that too. PS: thanks for your support. |
I'm glad my report helped find and fix this issue! I can confirm that it also occurred with v1.17.6, which I believe is the version containing the vulnerability fix: Setting width and height based on the actual JPEG dimensions is also a welcome improvement. From what I remember, we worked around that by getting width and height from the JPEG file headers rather than trusting the Exif metadata. I am traveling until August 19 and will therefore not be able to test the changes right now. However, I trust your own testing, so please feel free to go ahead and release these improvements as a new version! 👍 |
iOS 18 images cannot be converted strukturag/libheif#1190
Is there any chance of getting this fix applied to older versions this package? |
What would be the difference to simply install a v1.18.x or v1.19.x version? |
Due to circumstances of having to stay on a certain version of alpine we can't do 1.18 or 1.19. We may have to manually download and install this package but curious if there is any plans to fix previous versions say 1.16 or 1.17 |
I didn't plan this because I don't see a reason to release another v1.17.x version when v1.18.2 would do the same and it's also backwards compatible. If you really want to stay with the v1.17.x, you can cherry pick 4d76bae for the fix. |
Why thank you :) |
I found that the heic format photos taken by iPhone15 pro under iOS18 cannot be converted to jpg by heif-convert
libheif version: 1.17.6
Here are some logs:
When the iPhone 15 Pro system is still iOS17, the HEIC photos taken can be converted to JPG using the above command.
The file can be downloaded via the link below:
IMG_1159.zip
https://drive.google.com/file/d/1kEBvALrnM0EUwkQzsg8YL0Pwd8ZpRWWO/view?usp=sharing
The text was updated successfully, but these errors were encountered: