File → Import reference editor Catalog… opens .lrcat directly. reference editor, Python, DNG conversion
and a C SQLite runtime are not required. The source database is read-only, including committed
-wal pages; a catalog that changes during the read is rejected. Ember owns subsequent edits.
File → Open Library… given a reference editor catalog folder (or an .lrdata / .lrcat-data folder, or the .lrcat)
doesn't make a Ember library there: it offers this import instead, with the catalog found
(crates/engine/src/lightroom_folder.rs, issue #891). lightcraft-cli --library refuses those places too.
Equivalent commands:
lightcraft-cli run --library "Ember Library" library.inspectLightroom path="Lightroom Catalog.lrcat"
lightcraft-cli run --library "Ember Library" library.importLightroom path="Lightroom Catalog.lrcat"
Original files are referenced in place. Ratings, picks/rejects, color labels, XMP metadata,
hierarchical keywords, regular collections/collection sets, smart collections whose rules map
(as smart albums), virtual copies, mapped develop settings, develop history steps and snapshots are imported. Missing originals remain catalogued for relinking. Existing Ember
edits are preserved by default; updateExisting=true explicitly replaces them. Persistent import
identity prevents reimport from duplicating virtual copies and collections. One undo step reverses
catalog changes; any saved recovery archives remain available.
Before changing records, the importer attempts to save source image records, decoded XMP,
verbatim develop settings, history, snapshots and collection content to compressed
Interop/lightroom-import-N.lca recovery archives in the Ember library. Archiving is
best-effort: a size limit or write failure produces a warning and does not prevent photo import.
Unchanged source data reuses its existing archive. Opaque SQL BLOBs are skipped. Each archive is
capped at 32 MiB (uncompressed and on disk), with at most eight archives and 128 MiB total
retained. Oldest managed archives are retired; legacy .json archives remain untouched.
Interop/lightroom-index.json records imported identities. Source catalogs and originals are
never overwritten.
Native import is bounded to a 4 GiB database/WAL (each file is read fully into memory), 16 MiB XMP packets and one million rows per table. The in-tree, read-only Rust SQLite B-tree reader follows SQLite’s public file-format specification; it introduces no dependency or C runtime. Table payloads are capped at 256 MiB. Optional history, keyword and collection tables that exceed limits are skipped with warnings; required photo tables still report errors. Unrelated unsupported schemas are ignored. A needed WITHOUT ROWID or virtual table produces an explicit error, handled as a warning when optional.
Develop settings reuse the existing XMP/preset mapper. Supported sliders, curves and supported
mask structures remain editable, but this is approximate rendering: camera profiles, reference-editor AI
models, some masking/retouch fields and process-version algorithms are not reproduced. Unmapped
fields are reported. reference editor's ProcessVersion is not mapped: newly imported photos are on
Ember's latest rendering process, and photos already in the library keep theirs
(process-versions.md). When a recovery archive is saved, it retains source settings/history/snapshots
and original smart-collection rules.
Smart collections: the criteria table is read as data, never executed. A smart collection becomes an Ember smart album when every criterion has an Ember rule of the same meaning: rating, pick flag, colour label, capture date (is, after, before, between), ISO, focal length, file type (raw, video), and text criteria (filename, copy name, title, caption, creator, copyright, camera, lens, city, state, country, keywords), with the catalog's intersect, union and exclude modes as match all, any and none, nested groups included. One criterion without an equivalent (or a multi-word phrase match, which has no single Ember rule) keeps the whole collection a regular album with its current membership, because dropping it would change what the album holds; the report names each such criterion and the rules stay in the recovery archive. The criteria and operator names are those the reference editor is believed to write; they are checked against synthetic fixtures only, not a real catalog, and an operator this importer doesn't recognise takes the regular album path. Reimport keeps an album the user has already changed.
History and snapshots: each photo's develop history steps are mapped through the same settings translation as its
current settings and become its Ember History (newest 50 steps, oldest first, step names kept), and its snapshots
become named versions (newest 20). A virtual copy gets its own steps, never its master's. A photo the import keeps the
existing edits of (updateExisting off) keeps its own History and versions; with updateExisting=true its History is
replaced, and a snapshot already imported is not added again. Steps with unreadable settings are skipped and counted.
The conversions run while the library is committed, so one import converts at most 20,000 settings; a photo the budget
can't cover whole keeps its current settings only and the report says so.
Import report: besides counts, smartAlbums, history (photos, steps, snapshots, photos over budget, left out),
warnings and unmapped (develop fields with no Ember control, per photo), notImported lists everything left
behind and why: smart collections that stay regular albums, history and snapshots beyond the limits, and the
catalog's publish-service tables and detected face / people tables (AI data) when they hold rows. Those two are
not imported: Ember has no publish-service model, and detected people are not carried over. The source catalog is
only read, never opened as a database or written.
A Custom white balance on a raw Ember develops relative to its as-shot look (ARW, NEF, RW2,
RAF, CR3, CR2, PEF, SRW; reference editor names them all RAW) can't be taken as Kelvin: the catalog keeps no
as-shot white for Custom photos, so the photo stays As Shot and Temperature, Tint are reported
(issue #510; a DNG keeps the Kelvin value, and an XMP packet with crs:AsShotTemperature is
shifted by the same mired difference, see xmp-interop.md). A raw whose camera has
measured colour matrices (lightcraft_raw::spectral: ILCE-7M3, D850, EOS 5D Mark III…), or whose white-balance
presets give a Kelvin scale (lightcraft_raw::kelvin_presets: ILCA-99M2, ILCA-77M2…), edits in Kelvin
and keeps the Kelvin value too (issue #730) — when its file was found and probed, since the camera is
read from the file, not from the reference editor catalog; a missing file is treated as a relative-scale raw
until Reload reads it.
reference editor's -999999 deferred-adjustment sentinel is omitted from both catalog and XMP mappings;
it is reported, included in any saved archive, and never clamped into a real slider value. Deferred automatic tone
is not evaluated by the importer; Ember's Auto control remains available after migration.
Native desktop inspection/import runs on a cancellable background worker with progress. Only prepared catalog operations commit on the owner thread; archive index writing stays on a worker. Late results from a closed or switched library are rejected, including reopening the same path. Ordinary edits during preparation remain intact. CLI commands complete synchronously using the same preparation/commit pipeline; browser builds reject native catalog import.
Archive version 1 begins with the 12 bytes LC-LRARCH\0\x01Z, followed by zlib-compressed JSON.
Recovery readers must cap decompression at 32 MiB. JSON retains source identities, photo paths,
settings, decoded XMP, keywords, history, snapshots, collection definitions and membership.
The importer uses shared Rust code on macOS, Windows and Linux. When a root folder's recorded
path isn't a folder on this computer (a catalog copied from another machine), the importer uses
the path relative to the catalog that reference editor records for root folders on the catalog's volume
(relativePathFromCatalog), when that is a folder, and reports the remapping as a warning. Copying
a project folder with its catalog inside it therefore keeps its originals linked. Other moved
originals stay missing; use Ember's missing-photo relinking tools to update their paths.