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.
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.