Write ratings, keywords, hierarchy and IPTC to XMP
Sidecars and JPEG exports now carry xmp:Rating, xmp:Label, dc:subject and lr:hierarchicalSubject plus the IPTC core, and importing a sidecar applies its cataloguing fields independently of its develop settings. Hierarchical keywords keep leaf terms in the flat list, so search and filters are unchanged.
This commit is contained in:
@@ -994,6 +994,33 @@ listed in [`THIRD_PARTY_NOTICES.md`](THIRD_PARTY_NOTICES.md).
|
||||
|
||||
---
|
||||
|
||||
## Metadata portability
|
||||
|
||||
The catalog is not the only copy of what you typed. Ratings, colour labels, keywords and
|
||||
IPTC fields are written into XMP in both directions, so a library can leave.
|
||||
|
||||
- **Two keyword lists, on purpose.** `photo.keywords` holds the leaf terms and is what search
|
||||
and filters read; `photo.keywordPaths` holds the full `A > B > C` chains. Typing
|
||||
`Nature > Birds > Robin` records `Nature`, `Nature > Birds` and the full path, and adds
|
||||
`Robin` to the flat list, so taggers never have to think about the tree and search never
|
||||
has to.
|
||||
- **The pair Lightroom writes.** `dc:subject` carries the leaves, `lr:hierarchicalSubject`
|
||||
the paths, and `xmp:Rating` / `xmp:Label` the rating and colour label. Another editor
|
||||
sees the same thing Luminary does; a library can be rebuilt from sidecars instead of
|
||||
from this database.
|
||||
- **IPTC core.** Headline, credit, source, city, state, country and sublocation are edited
|
||||
in the Metadata panel and written as `photoshop:` and `Iptc4xmpCore:` properties.
|
||||
- **Import reads both halves.** Importing a sidecar applies its develop settings and its
|
||||
cataloguing fields independently: a metadata-only file from a DAM imports without a
|
||||
`crs:` grade, and a grade imports without keywords. Nothing the file omits is cleared.
|
||||
- **Exported files carry it too.** A JPEG export embeds the same packet as the sidecar, so a
|
||||
delivered file keeps its rating, keywords, hierarchy and IPTC.
|
||||
|
||||
`src/lib/keywords.ts` owns the path rules (separators, ancestors, pruning a subtree and
|
||||
leaving no orphan leaves); `src/lib/xmp.ts` owns the mapping to and from XMP.
|
||||
|
||||
---
|
||||
|
||||
## Lens profiles
|
||||
|
||||
Lens correction uses the calibration data of the
|
||||
|
||||
Reference in New Issue
Block a user