Skip to content

Dangling IFD pointer tags persisting after deleting their content #3459

@serghov

Description

@serghov

Describe the bug

When all tags within a SubIFD (such as GPSInfo or Exif) are deleted from ExifData, the corresponding pointer tag (e.g., Exif.Image.GPSTag, Exif.Image.ExifTag) remains in the metadata. This leads to the creation of empty or invalid IFDs when writing the image, causing inconsistency across platforms and failures in tests like geotag_test which fails quite frequently especially on macos.

To Reproduce

This is a non-deterministic bug, so it does not fail every time, however it fails quite frequently on geotag_test on macos on ci.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions