Description of problem: The current version of libheif in EPEL 9 (v1.17.x) is unable to decode HEIC images generated by devices running iOS 18 and newer (e.g., iPhone 16 series), which presents as a major problem for any customer related service since iPhone has a significant market share among image traffic. Version-Release number of selected component (if applicable): libheif-1.17.6 How reproducible: Always (100%) Steps to Reproduce: 1. Install ImageMagick and the EPEL libheif delegate: dnf install ImageMagick libheif 2. Obtain iPhone HEIC image and try to convert it: convert modern_iphone.heic output.png Actual results: ImageMagick fails with the following error: Invalid input: Unspecified: Too many auxiliary image references This error originates from the libheif decoder via the ImageMagick HEIC coder (heic.c/IsHEIFSuccess/202). In a PHP/Imagick environment, this results in an unhandled ImagickException, causing fatal errors in functions like getImageDimension() and convertImage(). Expected results: The image should be decoded successfully. Additional info: Upstream Reference: "This issue was explicitly addressed in libheif v1.18.2 (GitHub Issue #1190). The fix involved increasing the internal limit for auxiliary image references to accommodate the new HDR gain maps and depth data used in iOS 18."
Duplicate of bug 2386335?
FWIW, 1.17.x can be patched on EPEL10 as a minimum: https://github.com/strukturag/libheif/issues/1190#issuecomment-2484299504