Templates (IPTC pad, folders, file names, rename on arrival) take every variable of Photo Mechanic's list under its names and short names, in any case, with its modifiers (substrings, lc/UC/PC, tr:find/repl). IPTC variables are the photo's pad, as in Photo Mechanic. The pad gains every Photo Mechanic field with the same IIM/XMP tags, read back from incoming files. Camera details (exposure compensation, flash, metering, program, white balance, 35mm, lens range, firmware, owner, artist, GPS) are kept in photos.exif at ingest and read from the file at delivery for older photos. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
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;applyTemplateandtoExiftoolArgs.titleholds 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 inDESTINATION_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.