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

iOS18 HEIC photo open failed #249

Closed
Jraaay opened this issue Jun 18, 2024 · 3 comments
Closed

iOS18 HEIC photo open failed #249

Jraaay opened this issue Jun 18, 2024 · 3 comments
Labels
bug Something isn't working fixed Fixed in last version

Comments

@Jraaay
Copy link

Jraaay commented Jun 18, 2024

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'}}
@bigcat88
Copy link
Owner

Thank you for reporting this, can not promise fix to arrive soon, as it will require new version of libheif to be published.

Reference: strukturag/libheif#1190

@bigcat88 bigcat88 added the bug Something isn't working label Jun 18, 2024
@bigcat88 bigcat88 added the fixed in upcoming release fix will arrive with next release label Jul 23, 2024
@tharunkumartk
Copy link

Is it possible to create a new release with this fix ASAP? This update in libheif is necessary for users with iOS18, and it is a breaking change.

@bigcat88
Copy link
Owner

Release is planned for tomorrow or a day after.

@bigcat88 bigcat88 added fixed Fixed in last version and removed fixed in upcoming release fix will arrive with next release labels Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed Fixed in last version
Projects
None yet
Development

No branches or pull requests

3 participants