Describe the bug
When opening a photo shot by an iOS 18 device, will get an error: 'Invalid input: Unspecified: Metadata not correctly assigned to image'.
Steps/Code to Reproduce
from PIL import Image
from pillow_heif import register_heif_opener
register_heif_opener()
Image.open("path_to_img").show()
IMG_6849_1.zip
Expected Results
Open image successfully
Actual Results
PIL.UnidentifiedImageError: cannot identify image file 'path_to_img'
Versions
3.12.0 | packaged by Anaconda, Inc. | (main, Oct 2 2023, 17:20:38) [MSC v.1916 64 bit (AMD64)]
Windows-11-10.0.22631-SP0
0.16.0
{'libheif': '1.17.6', 'HEIF': 'x265 HEVC encoder (3.4+31-6722fce1f)', 'AVIF': 'AOMedia Project AV1 Encoder v3.8.2', 'encoders': {'x265': 'x265 HEVC encoder (3.4+31-6722fce1f)', 'aom': 'AOMedia Project AV1 Encoder v3.8.2', 'mask': 'mask'}, 'decoders': {'libde265': 'libde265 HEVC decoder, version 1.0.15', 'aom': 'AOMedia Project AV1 Decoder v3.8.2'}}
Describe the bug
When opening a photo shot by an iOS 18 device, will get an error: 'Invalid input: Unspecified: Metadata not correctly assigned to image'.
Steps/Code to Reproduce
IMG_6849_1.zip
Expected Results
Open image successfully
Actual Results
PIL.UnidentifiedImageError: cannot identify image file 'path_to_img'
Versions