Commit Graph
2488 Commits
Author SHA1 Message Date
Nathaniel Ledford 2d6126396b LRC-LIB-CATALOG-LOCK: quitting on macOS releases the library lock, so catalog.lock.owner is removed 2026-10-27 07:26:30 -04:00
Nathaniel Ledford d9f6514f13 LR-BEHAV-DRAGDROP: a right-click while photos are carried opens no context menu 2026-10-27 07:12:19 -04:00
Nathaniel Ledford 0320e8774c LRC-LIB-LIBFOLDERS: Don't ask again in the Move Photos question is kept only when the move started 2026-10-27 06:45:09 -04:00
Nathaniel Ledford 790cb76dce LR-BEHAV-DRAGDROP: a right-click on a text field while photos are carried opens no menu 2026-10-27 06:44:29 -04:00
Janick Martinez Esturo 453a0f2a3b LR-EDIT-OPTICS-PROFILE: address review on the ILCE-7M3 distortion PR
- docs/parity-checklist.md: the row's closing summary also lists the ILCE-7M3.
- docs/sony-lens-corrections.md, parity-checklist.md: state the validation set as the 26 tabled
  shots plus the two left out, instead of a total that did not add up.
- docs/whats-new.md: the sub-pixel claim is the median; corners reach about 1.5 px.
- tools/sony_distortion_check.py: re-render when the CLI or ARW is newer than the output, report
  the CLI's stderr on failure, keep renders of same-named files from different folders apart,
  and docstrings for every function.
2026-10-27 11:11:28 +01:00
Claude 4db57c976b LR-EDIT-OPTICS-PROFILE: enable Sony ILCE-7M3 embedded distortion correction
The A7 III's raw-IFD 0x7037 tables were refused until their geometry was checked. Measured against
the camera's own JPEG of the same exposure (Lens Comp. Distortion: Auto) on 27 RAW+JPEG pairs from
one body with the FE 16-35 F4 ZA, FE 28-70 and FE 50 F1.8 (strong barrel to strong pincushion,
compressed and uncompressed, TV and monitor checkerboards): corrected board corners sit 0.06-0.44 px
(median, 6000 px frame) from the JPEG's, against 0.8-26 px uncorrected; LightCraft applies the
camera's amount of correction within 2 %; corrected rows and columns are as straight as the JPEG's.
Sony's crop and the default crop agree on this body, so the warp is centred on the image.

A unit test pins the warp from three of these tables to the camera's fitted geometry; the model
boundary tests now accept ILCE-7M3 and still refuse its neighbours. RENDER_CACHE_VERSION is bumped.
The measurement script handles screen moiré (X-corner check, duplicate corners, consensus lattice
vectors). The corpus test's two ILCE-7M3 samples now expect one warp; raw.pixls.us is not reachable
from this environment, so that test was skipped here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015gRtdWF1E9358FfzhzYqCS
2026-10-27 10:52:36 +01:00
strebdom 64a16f378c Merge upstream main into fix/ahd-soft-choice; RENDER_CACHE_VERSION 71 (main took 70) 2026-10-27 07:37:57 +01:00
dotCooCoo f81d2d1ef8 Preserve the keyword painter shortcut with current main
Keep Enable Painting in the extracted menu modules and share the painter
box text with the keyword panel. Open the folded Keywords section when
the shortcut is pressed with an empty painter box.
2026-10-26 22:49:49 -07:00
OneSlipsandClaude Opus 5.5 b3b792f74d LR-EDIT-OPTICS-PROFILE: merge main (file split)
Main split the app's main.rs, the engine and ui-egui tests and the
frame loop into modules; the lens-database hunks now live in
apps/lightcraft/src/session.rs, crates/ui-egui/src/app/frame.rs and
crates/engine/src/tests/lens_refresh.rs. No behaviour change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 13:09:15 +10:00
helgehelge123andClaude Opus 5.5 fa09880641 KEY-TOGGLEZOOM: the checklist row names the Space-hand tests where main's layout put them
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 03:35:41 +01:00
Michael Anderson 07833ee643 Merge remote-tracking branch 'origin/main' into fix/guard-new-sidecar 2026-10-26 21:28:24 -05:00
insideTheFluxandClaude Opus 5.5 8c8c29fa8e Merge storytold/main into fix/2674-stored-frame-regions
main split files.rs, import.rs and media.rs into modules and moved meta's xmp.rs tests to xmp/tests.rs
(#3103): probe_bytes' orientation and region turn move to files/probe.rs, the import's orientation to
import/commit.rs, ProbeInfo::orientation to media/source.rs, and the regions_drawn_on test to
xmp/tests.rs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GfjNkJiMUagz3DN3zoV2rV
2026-10-26 18:53:47 -07:00
insideTheFluxandClaude Opus 5.5 d0eaf2e797 Merge storytold/main into feat/windows-monitor-profile
main split the desktop app's main.rs and ui-egui's lib.rs into modules (#3103): the Windows
screen_profile service moves with services() to apps/lightcraft/src/session.rs, the field's doc
comment to crates/ui-egui/src/services.rs, and the LR-PREF-DISPLAY row takes main's
dialogs/settings.rs path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GfjNkJiMUagz3DN3zoV2rV
2026-10-26 18:50:55 -07:00
helgehelge123 840e33a311 Merge branch 'main' of https://github.com/storytold/lightcraft into space-hold-pan
# Conflicts:
#	crates/ui-egui/src/lib.rs
2026-10-27 02:49:16 +01:00
insideTheFluxandClaude Opus 5.5 746917e835 Merge storytold/main into fix/2682-video-thumbnails
main split media.rs into media/ and moved render.rs's thumbnail tests to render/thumbnail_tests.rs
(#3103): thumb_job's video check moves with it to media/session.rs, the grid test to thumbnail_tests.rs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GfjNkJiMUagz3DN3zoV2rV
2026-10-26 18:48:52 -07:00
insideTheFluxandClaude Opus 5.5 7411b8c5e4 Merge storytold/main into fix/2682-render-debug-log
main moved render.rs's thumbnail tests to render/thumbnail_tests.rs (#3103): the debug-line test moves with them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GfjNkJiMUagz3DN3zoV2rV
2026-10-26 18:47:58 -07:00
insideTheFluxandClaude Opus 5.5 47289b561e Merge storytold/main into fix/2678-failed-thumb-retries
main moved render.rs's thumbnail tests to render/thumbnail_tests.rs (#3103): the retry test moves with them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GfjNkJiMUagz3DN3zoV2rV
2026-10-26 18:46:59 -07:00
insideTheFluxandClaude Opus 5.5 8702bcc356 Merge storytold/main into fix/2571-export-subfolder
main split export.rs into export/ (#3103): clean_subfolder sits beside join_path in export/place.rs,
where folder_for uses it, and export/params.rs imports it for from_json.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GfjNkJiMUagz3DN3zoV2rV
2026-10-26 18:45:27 -07:00
insideTheFluxandClaude Opus 5.5 45e52e7409 Merge storytold/main into fix/2555-sidecar-settings-range
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GfjNkJiMUagz3DN3zoV2rV
2026-10-26 18:42:11 -07:00
aiongg 69048937d0 docs: update source paths after the layout moves 2026-10-26 21:39:56 +00:00
Chad ElliottandClaude Opus 5.5 0a76419c4e fix(mcp): #3069 resend a request that crossed the app's idle-close notice
A request sent just as the app expires an idle control connection crosses
the app's id-less idle-close notice: the client's pre-send check saw an
open connection, wrote the request, and read the notice as its reply, so
`--connect` and the MCP server failed a command the app never read.

The app reads nothing after its idle timeout, so such a request never ran.
The app now marks the notice `"closed": "idle"`, and `Remote::call` sends
a request whose reply is that notice once more on a new connection (it
also matches the notice's exact text, for apps from before the marker).
At most one resend per call, whatever the reason; a reply with an id or
any other error is returned as before.

`idle_close_reconnects_without_replaying_a_command` now forces both
orders (notice before the next request, and a request crossing it)
instead of racing the notice; with main's client it fails every run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 11:08:24 -05:00
OneSlips 2ec4add0d6 LR-EDIT-OPTICS-PROFILE: lensfun database downloaded on first run, library looked up, Optics names the profile
- 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)
2026-10-27 01:14:00 +10:00
francoisgn 03e1ffa7b7 Merge upstream/main into feat/issue-2592-lightroom-backup-zip
# Conflicts:
#	docs/parity-checklist.md
2026-10-26 13:37:49 +00:00
softwaregames1andClaude Opus 5.5 22b963f262 Merge storytold/lightcraft main into LR-FILT-SEARCH-META
Conflict only in the docs/parity-checklist.md "Last updated" line: upstream's
line kept, with the LR-FILT-SEARCH-META entry added in front.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SqKgSkHi5MfTQFrZvDKBjm
Co-authored-by: softwaregames1 <167585946+softwaregames1@users.noreply.github.com>
2026-10-26 12:25:52 +00:00
dotCooCoo 9c191681c5 Merge main into feat/edit-keywords-key 2026-10-26 04:23:22 -07:00
ingolfteetzandClaude Opus 5.5 db42f7019e Merge origin/main into straighten-v2
- parity-checklist: main's header with Auto straighten's change noted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 11:51:41 +01:00
insideTheFluxandClaude Opus 5.5 0b610c8307 LR-PREF-DISPLAY: an unreadable Windows advanced-colour state leaves previews sRGB
When the display configuration, the window's display path or its advanced-colour state can't be
read, `monitor_color` answered with the monitor's profile as if Windows weren't colour-managing the
desktop. If it was (HDR, Auto Color Management), previews were converted twice. It now answers
`Unknown`, as the crate's other failures do, so previews stay sRGB (Windows 10 before 1709 and
drivers that don't report the state included).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GfjNkJiMUagz3DN3zoV2rV
2026-10-25 22:05:23 -07:00
francoisgnandClaude Opus 5.5 6655b70ff1 Merge upstream/main into feat/issue-2270-web-host-bridge
Conflicts: web.rs (upstream moved drop import and the benchmark into ui(), added the page title and
write_new; the bridge keeps run_host in update and reports dirty after save), docs/web.md (both
bullets kept), docs/whats-new.md (the entry moves to 2026-10-26).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01697nraCtyEpry7BiGLJjqv
2026-10-26 04:32:49 +00:00
insideTheFluxandClaude Opus 5.5 e7577a16b9 Merge storytold/main into feat/windows-monitor-profile
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GfjNkJiMUagz3DN3zoV2rV
2026-10-25 21:10:17 -07:00
Nathaniel Ledford b940d87880 KEYC-RATING: deleting the only keyword of the filter Enable Filters put aside leaves filtering on
keyword.delete emptied the put-aside filter's keyword but kept the empty filter, so filters_off() stayed true and View > Enable Filters showed unchecked with nothing to bring back. commit_keywords now drops a put-aside filter that has become empty, as library.removeFolder already does.
2026-10-25 23:54:26 -04:00
Tống Huy Sơn d668ae4136 i18n(vi): expand Vietnamese catalog with 421 missing interface messages 2026-10-26 10:44:34 +07:00
francoisgnandClaude Opus 5.5 0cf8c573c1 Merge upstream/main into feat/issue-2592-lightroom-backup-zip
Conflicts: docs/gaps.md, docs/parity-checklist.md (headers, gap 13 and the LRC-LIB-CATALOG-IMPORT row
keep both #2672's and #2592's text; revision rows dated 2026-10-26), docs/whats-new.md (the entry moves
to 2026-10-26), Cargo.lock (upstream's, regenerated by cargo: crc32fast for lightcraft-engine).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01697nraCtyEpry7BiGLJjqv
2026-10-26 03:41:54 +00:00
OneSlips 69ac0d23ce Merge remote-tracking branch 'origin/main' into pr/launch-opens-library
# Conflicts:
#	docs/parity-checklist.md
2026-10-26 13:37:19 +10:00
insideTheFluxandClaude Opus 5.5 82a45a9ddd Merge storytold/main into fix/2674-stored-frame-regions
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GfjNkJiMUagz3DN3zoV2rV
2026-10-25 20:26:54 -07:00
dotCooCoo 5eccdd26a8 Merge main into feat/keyword-shortcut-keys
# Conflicts:
#	docs/parity-checklist.md
2026-10-25 20:13:29 -07:00
Brain Wang 88960dbb0e LR-PROF-CAMERACOLOR: docs count 9 bundled camera profiles, not 5 2026-10-26 10:33:56 +08:00
aiongg 21a53cf61f Merge title-bar-movable (lightcraft#2930) into docking-adoption; every craft-libs crate at craft-libs main 1e6f127 2026-10-26 02:20:20 +00:00
aiongg 1952d4fd3c Merge upstream main into docking-adoption 2026-10-26 02:18:38 +00:00
aiongg 003779ce51 Merge upstream main into title-bar-movable; craft-window at craft-libs main 1e6f127 2026-10-26 02:18:22 +00:00
OneSlips cc4c6cc2c1 Merge remote-tracking branch 'origin/main' into pr/launch-opens-library 2026-10-26 12:16:27 +10:00
Dylan M. Taylor 8020cd081c showcase: check the file is readable without an empty with-block (#3001) 2026-10-25 21:13:45 -04:00
Michael Anderson 18a19325c1 Merge remote-tracking branch 'origin/main' into fix/guard-new-sidecar
# Conflicts:
#	crates/engine/src/originals.rs
2026-10-25 19:20:04 -05:00
Michael Anderson ab3f6af82a Merge remote-tracking branch 'origin/main' into fix/2119-erf-mef-strip-length
# Conflicts:
#	crates/raw/src/vendor/mef.rs
2026-10-25 19:20:01 -05:00
Andrew FrahnandClaude Opus 5.5 cc59c765ee #2361: lens corrections crop inside the corrected photo
Lens profiles, embedded camera warps, manual Distortion and lateral CA always shrink the crop about its centre
until it holds no blank past the source's edge, as Lightroom does; perspective still needs Constrain Crop. The
check covers every colour plane when the planes differ, so CA can't leave a coloured edge.

Sources: own design

(cherry picked from commit 7416984c5d)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 11:19:36 +11:00
helgehelge123 2547cf1308 Merge remote-tracking branch 'origin/main' into hebrew-glyph-fallback
# Conflicts:
#	.github/workflows/freebsd.yml
#	.github/workflows/release.yml
#	NOTICE
#	assets/ATTRIBUTION.md
#	docs/releasing.md
#	flake.lock
#	flake.nix
#	packaging/fonts.sh
#	packaging/windows/fonts.ps1
2026-10-25 23:49:02 +01:00
helgehelge123 bb59018de6 Merge remote-tracking branch 'origin/main' into space-hold-pan
# Conflicts:
#	crates/ui-egui/src/control.rs
#	docs/control-protocol.md
2026-10-25 23:48:05 +01:00
hnoerenbergandClaude fa7e5b9cb4 LR-EDIT-COLOR-TEMP: a one-field white balance partial lands where a mode answers its own white (#2910)
Reviewing #2952 turned up two more shapes of the same bug, both on the path this branch is about.

`effective_wb` ignores the temp / tint stored on an `As Shot` white balance — it answers the file's
as-shot white — and on a raw edited in Kelvin it also ignores a named preset mode's stored numbers,
through `WbMode::preset`. So a one-field partial that names its scale, `wb {temp: 5800, scale:
"kelvin"}`, merged into such a photo, was stored and then read by nothing: the panel shows 5800 K
while the render stays at as shot, and the stored tint no longer matches what renders. An unmarked
partial already materialized a Custom value through the relative-scale conversion; the named-scale
ones never did. The photo's preparation now writes out the white the photo really renders as Custom
values before the partial lands, for `As Shot` and for preset modes on a Kelvin source. `Auto` keeps
its mode — its gray is resolved and stored when the mode is set, not at render time — and a partial
that names a `mode` itself stays authoritative. Sources without the Kelvin scale (a raw whose camera
has no matrices, a rendered file) had the same swallow, and the number reaches their render now.

The issue asks for one photo-aware merge in every caller that writes settings onto a photo, and names
preset apply. `preset.apply` ran `Preset::apply` → `apply_partial` → `DevelopSettings::merged` and
never saw the photo's scale, so a preset authored by hand naming one white balance number still had
the original bug; measured on a photo at 5000 K / +12, it landed the photo on the relative scale and
moved the tint it never mentioned. The preparation and the normalize-back now wrap `Preset::apply`
per photo, with the amount blending and the mask merging untouched, which also puts an amount below
100 % on a single scale. Presets the app writes (`preset.create` → `extract_groups`) and the crs /
XMP importers name mode, temp, tint and scale together and so land in the branch that behaves
exactly as before.

Tests: the `As Shot` and preset-mode cases in the #2910 merge test, and the new
`preset.apply` test, fail before this commit (the first stores the number in a mode that renders the
photo's old white; the second demotes the photo to `Legacy`); the same test then pins that
`preset.apply` and `develop.merge` agree on a one-field white balance, which is the point of having
one merge.

Docs: the rule for an agent is in `docs/control-protocol.md` and `docs/mcp.md`, recorded on the
`LR-EDIT-COLOR-TEMP` row of `docs/parity-checklist.md`, and in `docs/whats-new.md`.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-10-25 21:54:35 +01:00
hnoerenbergandClaude 049034e247 LR-EDIT-COLOR-TEMP: a one-field white balance partial keeps the other field's look (#2910)
`develop.merge`, `lightcraft-cli render --settings` and MCP `set_develop` merged a white balance
partial that names only `temp` or only `tint` straight into the photo's settings, so the field the
partial leaves out — stored on the photo's scale — is re-read on the partial's scale. On a raw
edited in Kelvin that moves the green/magenta balance of photos the partial never mentioned:
`wb {temp: 5800}` on a photo at 5000 K / +12 tint lands on the relative scale, a shift of ~2.5 tint
units.

Resolve a one-field white balance partial against the photo: bring its stored white balance onto
the partial's scale with the photo's own as-shot white, merge, then put the result back on the
scale that photo is edited on. The inverse of `legacy_to_kelvin` is the composition of the two
Bradford adaptations run backwards: `lightcraft_pipeline::local::kelvin_to_legacy`. It maps the
source's own white to the relative scale's 6500 / 0 exactly, and answers None for a white the
relative scale cannot hold. Partials naming both fields or neither, presets and the crs / Luminar
importers are untouched: they always write `temp`, `tint` and `scale` together.

Tests: the round trip over the slider's reach, in both directions, and hostile inputs
(`crates/pipeline/src/local.rs`); the merge cases both ways plus the unchanged ones, and a restated
value that must not move the white at all (`crates/engine/src/tests_color.rs`). Both fail before
the change.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-10-25 21:54:35 +01:00
dotCooCoo 3c3d83031f KEYC-METADATA: Cmd+Alt+Shift+K sets the keyword shortcut and Shift+K adds or removes it
Lightroom Classic's keyboard shortcut page lists Command+Option+Shift+K
(Ctrl+Alt+Shift+K on Windows) for Set a keyword shortcut and Shift+K
for adding or removing the keyword shortcut on the selected photos.
LightCraft had no keyword shortcut.

Set Keyword Shortcut... (dialog.keywordShortcut, Cmd+Alt+Shift+K) asks
for one or more keywords with commas between them and shows the ones
set before. A new name goes inside the default parent, as in the
Keywording box. A keyword's Use This as Keyword Shortcut in the Keyword
List sets that keyword alone, and the list shows a + after each keyword
of the keyword shortcut. Shift+K (keyword.toggleShortcut) adds the
keywords to the selected photos, or removes them when every selected
photo has them all. The help pages do not say what Shift+K does when
only some selected photos have the keywords; adding them unless every
photo has them all is LightCraft's own rule. A photo's context menu
offers Add Keyword with the keyword shortcut's keywords.

The keyword shortcut is a mark on its keywords in the catalog's keyword
list (KeywordInfo::keyword_shortcut), as Put New Keywords Inside This
Keyword is: a new name is listed, the mark moves with a renamed, moved
or merged keyword and goes with a deleted one, and setting it
(keyword.setShortcut) is one undo step.

The new labels have rows in every catalog. The KEYC-METADATA and
LRC-LIB-KEYWORDS rows, docs/ui-parity.md and docs/library-shortcuts.md
list the keys.
2026-10-25 13:44:28 -07:00
dotCooCoo 1665a9c35c Merge main into feat/enable-painting-key 2026-10-25 13:27:04 -07:00