Skip to content

Add editable photo metadata and portable XMP sidecars - #161

Merged
IAmJSD merged 5 commits into
mainfrom
feat/metadata-xmp
Sep 20, 2026
Merged

IAmJSD merged 5 commits into
mainfrom
feat/metadata-xmp

Conversation

@IAmJSD

@IAmJSD IAmJSD commented Sep 20, 2026 •

Copy link
Copy Markdown
Member

Local gallery metadata was read-only. This adds Photo metadata to the selected photos’ context menu, with single and batch editing of keywords, paragraph captions, copyright, capture times, per-photo time offsets, and GPS. Only checked fields change; partial batches retain failed photos for retry without applying successful offsets twice.

Saves write portable XMP sidecars without changing image bytes. Namespace-aware patches preserve unrelated XML and translated captions, validate dates/coordinates, retain prior packets, reject ambiguous or malformed sidecars, and publish atomically. Gallery search, smart buckets, date/place grouping, maps, and headless search use the overlays. Gallery moves carry sidecars and backups, preflight collisions, and roll back completed transfers on failure. All 150 shipped locales have the new UI strings.

Validation passed in an isolated target directory:

  • make check-metadata-xmp — 9 gallery XMP tests passed; 4 editor metadata-filter tests and 2 photo-move-filter tests passed (the collision test appears in both filters); native editor all-target compilation passed. Coverage includes round trips, unknown properties, escaping, validation, atomic writes, partial failures, conflicts, symlinks, external edits/deletions over warm EXIF caches, opt-in batch fields, time-mode selection, search/date/GPS refresh, and sidecar moves/collisions. The optional ExifTool test is ignored by this target and was run separately below.
  • make check-metadata-xmp-exiftool — independent ExifTool reader/writer interoperability, including retention of a foreign rating property.
  • make check-metadata-xmp-native lint-metadata-xmp — native editor all-target compilation and gallery/editor Clippy with -D warnings.
  • make check-i18n — Rust catalogs, all shipped locale fonts, aliases, and web loader tests.

The editor runtime tests were executed successfully on Linux with an isolated workspace build after refreshing external dependency artifacts. No GUI smoke test was performed. This applies to local filesystem photos. External changes appear on Refresh/reopening the gallery. Clearing date/GPS suppresses embedded values in Schist, while other readers may fall back to the original EXIF. Sidecar naming and compatibility details are documented in docs/photo-metadata.md. No Adobe SDK/header files were used.

@IAmJSD
IAmJSD merged commit 0afdaa8 into main Sep 20, 2026
5 checks passed
@IAmJSD
IAmJSD deleted the feat/metadata-xmp branch September 20, 2026 13:07
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.

1 participant