Repository navigation
Description
Found while checking a Lightroom Classic catalog import (main, 0.21.1) against what Lightroom shows, on a small test catalog. Two bugs. If welcome, I'd send one narrow PR each with a test, labels first.
1. Colour labels from a non-English Lightroom are dropped
Lightroom stores a label as text in Adobe_images.colorLabels: the name the active Color Label Set gives that colour. The default set's names are taken in the UI language at the time the set is chosen and then kept, so a catalog made in German has Rot … Lila even after switching the UI to English. The import passes that text to label_from_name (crates/catalog/src/lib.rs), which tries LightCraft's custom label names and then ColorLabel::parse, which only knows the English names. So every photo labelled in a German, French, Spanish or Italian Lightroom is imported without a label.
Observed with Lightroom Classic 15.0 on macOS: UI language switched, default Color Label Set chosen, keys 6–9 and the fifth colour entry of the Set Color Label menu on five photos, then colorLabels read from the catalog (all NFC):
| Colour | German | French | Spanish | Italian |
|---|---|---|---|---|
| red | Rot |
Rouge |
Roja |
Rossa |
| yellow | Gelb |
Jaune |
Amarilla |
Gialla |
| green | Grün |
Vert |
Verde |
Verde |
| blue | Blau |
Bleu |
Azul |
Blu |
| purple | Lila |
Violet |
Púrpura |
Viola |
Note the feminine forms in Spanish (Roja, Amarilla) and Italian (Rossa, Gialla): the names can't be guessed from the colour words, they have to be observed.
XMP sidecars are affected the same way: a German Lightroom writes xmp:Label="Rot" into the sidecar, and sidecar.rs resolves it through the same label_from_name. Next to it Lightroom also writes photoshop:LabelColor="red", which doesn't depend on the language, so a sidecar could use that when present. (In the catalog the cached XMP packet doesn't always carry the label, so colorLabels stays the source there.)
Proposed fix: label_from_name (catalog and sidecar import) also accepts these default names. No name means two colours across the table. Text it doesn't know stays no label, as today. Other languages can be added the same way once someone observes them.
2. A keyword name containing | becomes a hierarchy
The import builds each keyword's path by joining the names up the parent chain with | (crates/engine/src/lightroom_catalog.rs, around line 582). Lightroom allows | inside a keyword name, so a top-level keyword A|B Test arrives as A > B Test: two keywords that don't exist in Lightroom.
Since LightCraft paths use | as the separator, the name can't be kept as is. Would you rather skip such a keyword with a warning, or replace the | (e.g. with /)?
P.S. #4293 reads captions from AgLibraryIPTC. The same table has copyright, which is also missing after import in my test. Happy to follow up on that once #4293 has landed.
Activity
ticket-craft commentedon Nov 19, 2026
Thanks! This ticket describes several separate problems:
It helps a lot if each one has its own ticket, so they can be tracked and fixed separately.
Possibly related: #3025 and #4089.