mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-13 01:14:21 -06:00
- lensfun's data/db (CC BY-SA 3.0) is fetched by the desktop app on first run into <config dir>/lensfun, pinned to commit 43f9e001 by name, size and SHA-256, staged until every file is verified, with an activity row (never bundled). LIGHTCRAFT_LENSFUN_URL lists other mirrors; LIGHTCRAFT_LENSFUN_DIR still wins. lens.downloadDatabase / lens.databaseStatus for agents. - The database is read per folder and again after a download; when it changes, library raws without a profile whose lens it knows are probed in the background and get it (untouched photos switch the correction on as import would); ticking Enable Lens Corrections looks those photos up again (library.refreshLensProfiles). - EmbeddedLens records its source (file / lens database); the Optics panel says "Profile: <lens> (lens database)", "Profile: from the file" or "No lens profile found for <lens>." (13 locales). - Tests: pinned download and refusal of a wrong file, the lookup and its edited / untouched rules, and presets / Copy-Paste / Sync carrying only the switch and amounts, each photo keeping its own lens's profile. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 773740fbb22eb66e7f62bada9cb32b594b6ff4d7)