Skip to content
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

iOS 18 HEIC Files #675

Open
kylew01 opened this issue Jun 15, 2024 · 8 comments
Open

iOS 18 HEIC Files #675

kylew01 opened this issue Jun 15, 2024 · 8 comments

Comments

@kylew01
Copy link

kylew01 commented Jun 15, 2024

I updated to iOS 18, and my HEIC images are no longer processed by imagick in Nextcloud. Where iOS is still in beta it may not be an issue, but it's probably something to keep an eye on as development continues.

The error it gives in Nextcloud is "ImagickException Failed to read the file".

@Danack
Copy link
Collaborator

Danack commented Jun 15, 2024

If you think you've got a HEIC image that isn't processed successfully by Imagick/ImageMagick compiled with HEIC support, please can you provide that as an example image.

There is absolutely nothing I can do with a report of 'some images aren't being processed'.

btw, I have no idea what Nextcloud is. It is possible that the problem you're seeing is the fault of that platform.

@kylew01
Copy link
Author

kylew01 commented Jun 15, 2024

Sorry, although I never said "some", I do not think I made myself very clear--every HEIC, since updating to iOS 18, fails to process. Nextcloud uses imagick as its back-end to process the HEIC images.

If there's a command or something specific that I can do, I'd be happy to do that to provide more details.

@Danack
Copy link
Collaborator

Danack commented Jun 16, 2024

Please provide any image.

There is absolutely nothing I can do with a report of something is wrong.

@kylew01
Copy link
Author

kylew01 commented Jun 16, 2024

IMG_4356.HEIC.zip

@Danack
Copy link
Collaborator

Danack commented Jun 17, 2024

Thank-you for providing the image.

So trying to load that file using Imagick I get an error:

Fatal error: Uncaught ImagickException: Invalid input: Unspecified: Too many auxiliary image references (2.0) `/var/app/bugs/gh675/IMG_4356.HEIC' @ error/heic.c/IsHEIFSuccess/138 in /var/app/bugs/gh675/go.php:5

I have no idea what that means, but it looks like an error in the underlying HEIC image decoder.

Is it okay for me to post the image you provided elsewhere when I figure out which upstream library needs to have the bug reported at?

@Danack
Copy link
Collaborator

Danack commented Jun 17, 2024

Oh. It looks like a very similar issue has just been reported at the libheif library, which is the underlying library that ImageMagick uses to process images: strukturag/libheif#1190

I'm guessing that IOS18 uses more advanced elements of that image format/container.

I'll keep watching that issue and check that the fix does work with Imagick when it is released.

@kylew01
Copy link
Author

kylew01 commented Jun 17, 2024 via email

@ryanong
Copy link

ryanong commented Oct 21, 2024

This problem has been solved if you use libheif 1.18+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants