Commit Graph
2488 Commits
Author SHA1 Message Date
ronibalthazar a1e1b4cc0e LR-META-EXIF-FULL: reject malformed EXIF clocks 2026-10-25 19:03:33 +00:00
insideTheFluxandClaude Opus 5.5 3457805d5b Merge storytold/main into feat/windows-monitor-profile
Conflicts in docs/gaps.md and docs/parity-checklist.md: main rewrote both header lines. Main's
lines are kept, with this branch's gap 22 and LR-PREF-DISPLAY items added at their front.
Cargo.lock: lightcraft-wincolor follows the workspace version to 0.14.0 (Release 0.14.0).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ce9UH8Ah34B9wHuQ2dN75T
2026-10-25 18:06:40 +00:00
aiongg 672baaea46 Merge lightcraft#2913 (egui 0.37) into docking-adoption; craft-ui and craft-docpath at craft-libs main a091680 2026-10-25 17:36:59 +00:00
ronibalthazar cff89260f9 LR-IMP-ADD-DIALOG: check rename sequence exhaustion 2026-10-25 17:28:56 +00:00
aiongg c01d4c7074 Merge lightcraft#2913 (egui 0.37) into title-bar-movable; craft-window at craft-libs main a091680 2026-10-25 17:19:47 +00:00
aiongg d4cfd2e6d5 LR-BEHAV-TITLEBAR: the checklist row follows craft-window's title_bar 2026-10-25 17:07:16 +00:00
OneSlipsandClaude Opus 5.5 e47fc37267 LRC-LIB-CATALOG-SWITCH: a library's catalog.snap or folder given at launch opens that library
Double-clicking a library's catalog.snap in Explorer (or giving it, or the
library folder, as an argument) opened the last library used and treated the
argument as photos to import. It now opens that library, through the usual
launch path (the lock check for
one open in another LightCraft), and makes it the library in use. A second
library argument gets a notice. Never imported.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

(cherry picked from commit 64a86cf3098ae4d33cef8c4f4a2ec486cdb148a4)
2026-10-26 01:59:34 +10:00
Ingmar LübbeandClaude Opus 5.5 1ada7c2af0 Issue #2936: gpu-pipeline.md says what is measured about the remaining kernel time
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018QWU3BMJMENFqFqxDHzV3b
2026-10-25 16:39:14 +01:00
Ingmar LübbeandClaude Opus 5.5 fa4bccff64 Issue #2936: build the GPU kernels on parallel threads
Gpu::new built the 27 compute pipelines one after another. On DX12 each one is compiled by FXC
(issue #471), single-threaded, inside create_compute_pipeline, so every process waited ~2.2 s for
them on an Intel Core Ultra 7 165U iGPU (app.gpu 2.4 s median) while the other cores idled.

build_kernels creates the shader modules and layouts on the calling thread and shares the pipelines
out to worker threads (std::thread::scope, an atomic job counter; the calling thread works too, so
every kernel is built even when no thread can be started). wgpu's error scopes are per thread, so
each worker pushes its own validation and internal scopes: a refused kernel or a panicked worker
still means no GPU, never a half-built one. app.gpu: 2.4 s -> 1.2 s median on that machine, exports
pixel-identical. The gpu: info line now reports the kernel count and build time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018QWU3BMJMENFqFqxDHzV3b
2026-10-25 16:38:12 +01:00
dotCooCoo 2ff14c9828 Merge main into feat/enable-painting-key 2026-10-25 08:36:21 -07:00
ronibalthazar 0352b420a7 fix(codecs): validate JPEG ICC APP2 chunk sequences 2026-10-25 14:13:58 +00:00
skylar taylor-barrick c627ce7210 egui-037: preserve modal input ownership and packaged font notices 2026-10-25 13:14:34 +01:00
ingolfteetzandClaude Opus 5.5 6d569719b6 Merge origin/main into straighten-v2
- whats-new / parity-checklist: main's 2026-10-24 entries next to Auto straighten's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 10:34:32 +01:00
Jason LukerandClaude Opus 5.5 2dd02f6f97 PERF-WINDOW: the window queues one frame, not two (eframe's low-latency surface)
window_gpu::base_options() built the window's wgpu options from
egui_wgpu::WgpuConfiguration::default(), which is egui-wgpu's HIGH_THROUGHPUT
surface (desired_maximum_frame_latency 2; three drawables on Metal), not
eframe's default. eframe's NativeOptions::default() uses LOW_LATENCY
(latency 1). The window had eframe's default until #136 started building
the options by hand to choose the backends.

Start from eframe::NativeOptions::default().wgpu_options and change only
the backends, the DX12 compiler and the instance flags, as before. The
probed Windows configurations are built on the same options.

Measured on an M2 Max at 120 Hz (Metal System Trace, heavy develop drag,
presents joined to WindowServer's reads of the same IOSurface): the window
cycles 2 drawables instead of 3, and a frame reaches the compositor about
8.3 ms (one frame) sooner, 9.5-10.6 ms instead of 17.9-18.9 ms after it is
presented, at the same ~119 frames a second.

Test: window_gpu::tests::window_surface_keeps_one_frame_in_flight (fails
on the old options: latency Some(2) instead of Some(1)).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 02:19:57 -07:00
Claude 8fe7198dbd LR-FILT-SEARCH-META: >= and <= in fielded search tokens
`rating:>=3`, `iso:<=400`, `f:>=2.8` read the `=` as part of the number, the
parse failed, and the token silently matched no photo. Parse the two-character
operators first and compare inclusively; `>`, `<`, `=` and bare numbers are
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SqKgSkHi5MfTQFrZvDKBjm
2026-10-25 08:47:10 +00:00
insideTheFluxandClaude Opus 5.5 1c499ca638 Merge storytold/main into fix/2674-stored-frame-regions
Conflict in docs/parity-checklist.md: main rewrote the header's change line (KEYC-METADATA
and LRC-LIB-KEYWORDS keyword sets first). Main's line is kept, with this branch's
LR-LIB-PEOPLE entry added at its front; the LR-LIB-PEOPLE row and the revision history row
merged cleanly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018U5oDm8hZ4tVD3Kqvg7iat
2026-10-25 01:03:26 -07:00
skylartaylor e7144adc1f M0.37: reconcile current LightCraft main and qualify the migration 2026-10-25 07:47:22 +01:00
ronibalthazar 07d1f0ad5d LR-META-XMP: reject incomplete ISO timestamps 2026-10-25 06:35:43 +00:00
aiongg 7291abdc14 Merge upstream main into docking-adoption 2026-10-25 05:55:03 +00:00
FredApps 9e74c3a304 LR-1619: shutter rules match the shown value; Reload from Disk repairs a shutter speed an older import rounded 2026-10-25 06:53:39 +01:00
FredApps c413438556 Merge main into fix/1619-shutter-precision 2026-10-25 06:25:56 +01:00
aiongg 31ec62cd03 Info panel Target Photo edits, Add Keywords cursor request and Fixed keys follow-ups (#2889)
* LR-PREF-SHORTCUTS: the shortcuts panel's Fixed keys ignore keys saved for unknown commands

* KEYC-METADATA: an Add Keywords request the Keywords panel can't take in time expires

* LR-META-INFO: Target Photo saves an Info edit to the photo it shows
2026-10-25 00:58:10 -04:00
Nathaniel Ledford 44cb68b8c1 docs: gap 9 — the CI gate runs the tests on Linux x64; macOS, Windows and the GPU tests still don't 2026-10-25 00:38:38 -04:00
radialmonsterandClaude Opus 5.5 dc6433179b Export: note on LZW TIFF size, never larger ZIP at 16 bit (#2882)
16-bit LZW TIFFs come out larger than uncompressed ones and slower than
ZIP. The export keeps LZW exactly as picked (some software reads only
LZW), and says what it costs where it is chosen:

- Export dialog: a note under Compression when LZW is selected, worded
  more strongly at 16 bit, a milder one at 8 bit and 32-bit float.
- Export presets that write LZW TIFFs carry the same hint on hover, in
  the dialog's Preset list and the grid's Export with Preset menu.
- tiffCompression docs: MCP schema and headless params, the user export
  guide and the parity checklist.

Tests: the note shows for LZW only and under the Compression choice
(headless), presets get the same hint, the dialog keeps LZW; 16-bit ZIP
is never larger than uncompressed on a noisy synthetic render (noise
0 to 0.1) and on the demo photo's export.

Fixes #2882

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014ti8KemZbjE2ZgHgV1q1BM
2026-10-25 00:26:49 -04:00
aiongg c3feda15c0 LR-META-INFO: the Info panel shows Selected Photos by default; gaps.md lists its change notes once 2026-10-25 03:36:14 +00:00
aiongg e339afc263 Merge PR #2810: LR-META-INFO: the Info panel can show metadata for the selected photos 2026-10-25 02:25:16 +00:00
aiongg 6e5e958639 Merge PR #2792: LRC-DEV-VIEWOPTIONS: View Options can turn off the loupe's "Rendering…" message 2026-10-25 02:24:50 +00:00
aiongg 17a3b80702 Merge PR #2790: LRC-DEV-VIEWOPTIONS: the info overlay can show briefly when the photo changes 2026-10-25 02:24:29 +00:00
aiongg 77196373a9 Merge PR #2870: KEYC-METADATA: Cmd+K / Ctrl+K puts the cursor in the Add keyword box 2026-10-25 02:24:29 +00:00
dotCooCoo e3102ab2e5 KEYC-METADATA: Cmd+Shift+K / Ctrl+Shift+K edits the keyword picked in the Keyword List
Lightroom Classic's keyboard shortcut page lists Command+Shift+K
(Ctrl+Shift+K on Windows) for Edit keywords, and its keyword help page
describes editing a keyword in Edit Keyword Tag from the Keyword List.
LightCraft had no key for it.

Edit Keywords (panel.editKeywords, Cmd+Shift+K) shows the Keywords
panel, opens its Keyword List when it is folded shut, and opens the
keyword picked in the list in Edit Keyword Tag. With no keyword picked,
or with the picked keyword deleted, it opens no dialog.

The command label has a row in every catalog. The KEYC-METADATA row,
docs/ui-parity.md and docs/library-shortcuts.md list the key. The
KEYC-METADATA row also lists the existing Alt+1 to Alt+9 keyword set
keys in place of "no keyword sets".
2026-10-24 19:24:23 -07:00
aiongg 122859d269 Merge PR #2846: KEYC-METADATA: Alt+0 / Alt+Shift+0 go to the next / previous keyword set 2026-10-25 02:24:03 +00:00
aiongg 387ad02b79 Merge PR #2832: LR-PREF-SHORTCUTS: a declared shortcut yields to a key the saved keymap gives another command 2026-10-25 02:23:22 +00:00
aiongg eb9ef0a40e Merge PR #2824: KEYC-METADATA: Cmd+Alt+Shift+C / V copy and paste metadata 2026-10-25 02:23:21 +00:00
aiongg 5c46163e66 Merge PR #2778: LRC-PRINT-TEMPLATES: print templates export to a file and import from one 2026-10-25 02:23:20 +00:00
aiongg f923967c63 Merge PR #2786: LRC-SS-PLAYBACK: a manual slideshow waits for the arrow keys 2026-10-25 02:23:20 +00:00
skylartaylor c057ccc23f Migrate LightCraft to egui 0.37 and reconcile dependency and font locks
Preserve current main, adapt frame/input and IME handling, and keep library
check results stable across layout passes. Include the matching Nix font lock
and reviewed attribution changes.
2026-10-25 02:54:42 +01:00
insideTheFluxandClaude Opus 5.5 e69f8b160d LR-LIB-PEOPLE: the image's own size decides, and its orientation is found past the first MiB (#2674)
From CodeRabbit's review of #2857:

- Import: when the file's orientation swaps the axes and the XMP's boxes were
  drawn on a stated size, the probe turns the boxes as written by the image
  header's stored size, not by a size the metadata states (missing, or
  written for the upright photo).
- Read Metadata from File and Synchronize Folder: the file's orientation is
  read from its first MiB and, when that part states none, from the rest of
  the file. WebP keeps its EXIF chunk after the image data, many TIFF
  writers put the first IFD after the strips, and a JPEG's Exif can follow
  other long segments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016TuX1qw9ieyuJ1ZFrrUxzc
2026-10-24 18:01:25 -07:00
dotCooCoo beb42abb25 KEYC-METADATA: Cmd+K / Ctrl+K puts the cursor in the Add keyword box
Lightroom Classic's keyboard shortcut page lists Command+K (Ctrl+K on
Windows) for Add keywords. LightCraft had no key for it.

Add Keywords (panel.addKeywords, Cmd+K) shows the Keywords panel,
opens its Keywording section when it is folded shut, and puts the
cursor in the Add keyword box, so the next keywords typed go to the
selected photos. Pressed again, it leaves the panel open. With no photo
selected the panel shows its note, and selecting photos later does not
move the cursor into the box.

The command label has a row in every catalog. The KEYC-METADATA row,
docs/ui-parity.md and docs/library-shortcuts.md list the key. The
KEYC-METADATA row also lists the existing Alt+1 to Alt+9 keyword set
keys in place of "no keyword sets".
2026-10-24 16:48:57 -07:00
aiongg 02aa1e0f59 Docs: only the five split zones of ui.dock move have PascalCase names 2026-10-24 23:41:54 +00:00
insideTheFluxandClaude Opus 5.5 30780eb9a8 LR-LIB-PEOPLE: face boxes drawn on a photo as stored land on the upright photo (#2674)
Some applications give a rotated photo's MWG regions on its stored pixels and
say so only through mwg-rs:AppliedToDimensions (the stored, sideways size),
without Lightroom's mwg-rs:Rotation. Those boxes were taken as upright, so on
a portrait photo they sat where the landscape photo had the faces.

When AppliedToDimensions has the shape of the photo as stored rather than
upright, the boxes are now turned with the file's own Exif orientation (mirror
included): for embedded XMP at import (with the header's size when the
metadata states none), and for sidecars and a raw's embedded XMP at import, on
Read Metadata from File and in Synchronize Folder. Boxes drawn on the upright
size, square photos and Lightroom's turned boxes are taken as written.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016TuX1qw9ieyuJ1ZFrrUxzc
2026-10-24 15:33:53 -07:00
aiongg a27d8c05d4 Docs: ui.dock above and below name the target's group 2026-10-24 22:19:29 +00:00
ronibalthazarandCodex 77471ca376 LR-EXP-METADATA: reject Originals with unreadable XMP
Co-authored-by: Codex <noreply@openai.com>
2026-10-24 23:18:57 +01:00
dotCooCoo 105dfa84d9 KEYC-METADATA: Cmd+Alt+K / Ctrl+Alt+K turns on keyword painting
Lightroom Classic's keyboard shortcut page lists Command+Option+K
(Ctrl+Alt+K on Windows) for Enable painting; LightCraft had no key for
it, and painting started only from the Keywords panel's painter box
(Paint, or Return in the box).
Photo > Enable Painting (tool.enablePainting, Cmd+Alt+K) paints the
keyword typed in the painter box. Pressed again while painting, it
stops painting, as Esc does. With the box empty it opens the Keywords
panel and asks for a keyword to paint.

The painter box's text is kept in the UI state (keyword_painter_text)
instead of egui's temporary data, so the command can read it, and the
box shows the keyword that tool.keywordPainter paints.

The command label and the new message have rows in every catalog. The
KEYC-METADATA and LRC-LIB-KEYWORDS rows, docs/ui-parity.md and
docs/library-shortcuts.md list the key.
2026-10-24 15:04:57 -07:00
aiongg 5b7a4e9a94 Docs: ui.dock move lists the tab, above and below zones 2026-10-24 21:31:46 +00:00
ronibalthazarandCodex 650edf66f8 LR-EXP-METADATA: refuse Originals with embedded place names
Co-authored-by: Codex <noreply@openai.com>
2026-10-24 22:27:28 +01:00
dotCooCoo b572dee19f KEYC-METADATA: Alt+0 / Alt+Shift+0 go to the next / previous keyword set
Lightroom Classic's keyboard shortcut page lists Option+0 / Option+Shift+0
(Alt+0 / Alt+Shift+0 on Windows) for cycling forward and backward through
the keyword sets; LightCraft had no key or command for it. Next Keyword
Set (keyword.nextSet, Alt+0) and Previous Keyword Set
(keyword.previousSet, Alt+Shift+0) make the set after or before the
current one current, in the Keyword Set menu's order: Recent Keywords,
then the saved sets. The keys wrap around at either end, and Alt+1 to
Alt+9 then apply the new set's keywords.

The two command 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-24 12:55:46 -07:00
j-a-b-r-o-n-iandClaude Opus 5.5 f6c5cab021 LR-META-XMP: write sidecar keywords as names in dc:subject and paths in lr:hierarchicalSubject
Saving a sidecar wrote each keyword's path into dc:subject. A photo
keyworded Places|Italy|Rome got "Places|Italy|Rome" there instead of
"Places", "Italy" and "Rome", after any change with auto-write on, even a
rating. dc:subject is the flat list Lightroom, darktable, digiKam and
exiftool-based tools search, so the photo stopped turning up for "Rome"
in a library shared with them.

keywords::to_file is the inverse of from_file: every level of every
keyword goes to dc:subject, and when any keyword has levels, every
keyword goes to lr:hierarchicalSubject as its path. It applies no export
options (a sidecar is the photo's own record), so from_file reads the
pair back as the same keywords. lr:hierarchicalSubject is now owned, so
it is replaced on save and removed when the photo has no keywords, which
also ends the documented limit where a keyword removed here stayed in
another app's hierarchical list. Sidecars from 0.13 and older (paths in
dc:subject) still read as paths and are written the new way on the next
save.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 15:26:42 -04:00
aiongg 5ce171da23 Docking: the workspace, its commands and their parser come from craft-ui (craft-libs 16fb3d4)
craft-ui and craft-docpath are pinned to craft-libs 16fb3d46e1eaa0d455465e4e66a3ac7b17b55bd3.
The saved workspace is craft_ui::docking::Workspace<Panel>; settings written
before it had a version load as version 1. ui.dock params parse as the shared
DockCommand and apply through Workspace::apply_all. LightCraft keeps its
panels, permissions, default layout, photo-view checks, the fallback beside
the photo view for a panel with no recorded place, and its settings file.

The photo view takes side splits (accepts_splits on PROTECTED), so panels
still open and move beside it.

Tests: a version 1 workspace file loads and reopens its hidden panel; a drag
of a group by its bar moves both of its panels.
2026-10-24 19:23:08 +00:00
Davit MatchakhelidzeandClaude Opus 5.5 ecb922170b Merge main into ka-update
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YMTAbGNRxnMEzRvYnQGphF
2026-10-24 22:28:38 +04:00
dotCooCoo 8d67b834e4 LR-PREF-SHORTCUTS: a declared shortcut yields to a key the saved keymap gives another command
When a saved keymap gave a key to one command and a later build declared
the same key as another command's default, one press ran both commands,
and menus and Help > Keyboard Shortcuts listed the key on both.

binding() now drops a declared shortcut while the keymap gives its key to
another known command, other than its contextual partner. handle(),
conflicts(), shortcut_of(), the menus and the shortcut editor read it.
In the editor such a row counts as changed, so its restore button takes
the key back.

handle() also let every saved entry stop the fixed keys on its key
(Enter in the grid, secondary keys such as Shift+X, the rating and
label digits, Home, End and Shift+arrows), including entries for
commands the build does not know. It now reads only the entries of
known commands, as binding() does, so a stale entry in ui.json no
longer silences Shift+X, a rating digit or a label digit.
2026-10-24 11:20:04 -07:00