Files
photoreport/packages/metadata
sparkandClaude Opus 5.5 27eb8302bb
ci / rust (push) Successful in 1m41s
ci / typescript (push) Successful in 3m25s
fix(iptc): keep long values whole in IIM, write capture date and time
Lightroom and Photo Mechanic write e.g. a 39-character Sub-location in full; ExifTool now does the same (-m) instead of cutting it at 32 bytes. IIM is flagged as UTF-8 so accents survive in every reader. IPTC DateCreated/TimeCreated (and XMP DateCreated) come from the capture time in Lisbon time.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-11 17:22:41 +01:00
..

packages/metadata

Photo Mechanic-style metadata, shared by web, desktop and server.

  • template.ts: {variable} templates with modifiers ({sport:upper}, {n:pad3}).
  • codes.ts: code replacement (\v7\ → "Miguel Silva (VSC)"), imported from tab-separated lists.
  • iptc.ts: the IPTC fields we fill, mapped to IIM and XMP tags; applyTemplate and toExiftoolArgs. title holds the names of the people in the photo. IIM length limits are reported, not truncated silently (XMP keeps the full text).
  • vars.ts: the variables every template can use (event, date in Lisbon time, season, players, photographer).
  • paths.ts: folder and file-name templates for deliveries (FPA and Liga examples in DESTINATION_EXAMPLES).

Open point: the target tag for Photo Mechanic's "Creator's Identity" is not mapped yet; confirm it from a file exported by Photo Mechanic.