Skip to content

Cannot read metadata from HEIC files #3418

@jblum66

Description

@jblum66

Hi,

The software digikam (v8.7.0) uses Exiv2 internally to decode the metadata. Unfortunately, Exiv2 seems to have a problem with my HEIF photos. This prevents Digikam from retrieving GPS information from the image metadata. According to a digikam developer, it generates an exception:

digikam.metaengine: Exiv2 ( 3 ) :  Directory Image: Next pointer is out of bounds; ignored.
digikam.metaengine: Exiv2 ( 3 ) :  Upper boundary of data for directory Photo, entry 0x927c is out of bounds: Offset = 0x0000030a, size = 65564, exceeds buffer size by 815 Bytes; truncating the entry
digikam.metaengine: Exiv2 ( 3 ) :  Offset of directory Photo, entry 0xa404 is out of bounds: Offset = 0x00010326; truncating the entry
digikam.metaengine: Exiv2 ( 3 ) :  Directory Image, entry 0x8825 Sub-IFD pointer 0 is out of bounds; ignoring it.

It's a photo taken by a Poco F7 Ultra in HEIF/HEIC format.

This exception comes from the EXV container created by ExifTool 13.40.
Exiv2 wouldn't find any metadata directly in the image.

digikam bug link: https://bugs.kde.org/show_bug.cgi?id=511467

I tried myself Exiv2 for the first time. I'm using the EXE binary file for Windows:

exiv2.exe -v -Qd  H:\xxx\IMG_20251011_222520.HEIC

File 1/1: H:\xxx\IMG_20251011_222520.HEIC
File name       : H:\xxx\IMG_20251011_222520.HEIC
File size       : 936139 Bytes
MIME type       : image/heic
Image size      : 4096 x 3072
H:\xxx\IMG_20251011_222520.HEIC: No Exif data found in the file

IMG_20251011_222520.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions