Skip to content

Comments

fix: route iOS write tags to correct EXIF dictionaries#23

Merged
lodev09 merged 1 commit intomainfrom
fix/ios-write-tag-routing
Feb 8, 2026
Merged

fix: route iOS write tags to correct EXIF dictionaries#23
lodev09 merged 1 commit intomainfrom
fix/ios-write-tag-routing

Conversation

@lodev09
Copy link
Owner

@lodev09 lodev09 commented Feb 8, 2026

Summary

Fixes #11. iOS write was putting all tags into kCGImagePropertyExifDictionary, causing TIFF tags (Make, Model, Software, DateTime) and most GPS tags (GPSDOP, GPSImgDirection, GPSImgDirectionRef) to be silently dropped.

Tags are now routed to the correct sub-dictionary:

  • TIFF keys → kCGImagePropertyTIFFDictionary
  • GPS keys → kCGImagePropertyGPSDictionary (generic, not just 5 hardcoded)
  • Everything else → kCGImagePropertyExifDictionary

Also adds HostComputer to ExifTags type.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Test Plan

Took photo in example app, wrote tags (Make, Model, Software, DateTime, GPSDOP, GPSImgDirection, GPSImgDirectionRef), saved to media library, read back — all tags preserved.

Checklist

  • I tested on iOS
  • I tested on Android
  • I updated the documentation (if needed)

@lodev09 lodev09 merged commit ea2b7a6 into main Feb 8, 2026
3 checks passed
@lodev09 lodev09 deleted the fix/ios-write-tag-routing branch February 8, 2026 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some tags are not written

1 participant