Repository navigation
Integrate #573, #498, #602, #601, #560, #555, #480, #590 - #692
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…8 (FFF, H3D/H4D/CFV-50c 3FR) Lossless JPEG scans whose SOS gives predictor selection value 8 (which T.81 leaves undefined) are read as Hasselblad codes them (ljpeg::decode_hasselblad): 32-bit little-endian words read from their most significant bit, no byte stuffing; each row in pairs of samples, both Huffman categories before both differences; category 16 is followed by 16 ignored bits and means -32768; each sample is the previous sample of its column parity in the row plus the difference, modulo 2^16, both starting at 32768 on every row. Only the layout measured is accepted (one component, 16 bits, no point transform or restarts, even width); other layouts and selection values above 8 stay Unsupported. The rule was measured on 14 CC0 files with the ljpeg-explorer tool. RENDER_CACHE_VERSION 23.
…ender cache version 23, as #448 has 22) # Conflicts: # crates/engine/src/media.rs # docs/parity.md
…ion 23, as main is at 22) # Conflicts: # docs/parity.md
…red spectral sensitivities A raw without colour matrices of its own now gets DNG ColorMatrix1/2 and ForwardMatrix1/2 for its model when the model is one of the 52 cameras in rawtoaces-data (Academy Software Foundation, Apache-2.0): 22 Canon, 11 Nikon, 11 Sony, 3 Fujifilm and 5 others, plus the other names its alias list gives (Rebel T3i and Kiss X5 for the EOS 600D; bodies it lists as sharing a sensor). tools/spectral_camera_table.py fits, under Standard Illuminant A and D65, a white-preserving 3x3 to the measured spectral sensitivities over rawtoaces-data's 190 training reflectances and writes crates/raw/src/spectral_table.rs. No number comes from Adobe or from a raw decoder. lightcraft_raw::spectral looks a camera up by Exif make and model; the DNG colour model does the rest. camera_preview::starting_colour takes the first available of: the file's own matrices, a camera profile for the model (fitted to the JPEG for tone), the spectral matrices, the file-local JPEG fit, the neutral fallback. A profiled model whose profile fit fails takes its spectral matrices. White balance stays relative to the as-shot look for every raw without matrices of its own, so Photo::relative_wb and the controls are unchanged; calibrate still pools covered models. Tests: one per precedence step (synthetic), the table's lookup, aliases and DNG shape, and a corpus test of the order on ILCE-7M4 (profile), EOS 5D Mark III and D5100 (spectral), EOS 7D (own fit) and a DNG. The ILCE-7RM2 and GFX100S corpus tests now expect the spectral matrices. Attribution in assets/ATTRIBUTION.md and NOTICE. RENDER_CACHE_VERSION 23. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…act 1.5 bytes per pixel strip Compression 32767 with BitsPerSample 12 and one strip of exactly width x height x 1.5 bytes is plain packed 12-bit data: two pixels per three bytes, least-significant-bit first (measured on the DSLR-A900 sample by same-colour neighbour smoothness, 12x smoother than the other orders). RGGB per the file's pattern tag (checked against the camera JPEG), black 128, crop = FullImageSize centred in the frame, white balance from the plain maker-note block. Any other strip size stays Unsupported. RENDER_CACHE_VERSION 22 -> 24 (adjust at merge).
…ion and are rebuilt when it is older A smart preview keeps the colour and tone curves the camera-look fit gave it, so a fit change (#499, #528, #583) left existing previews with the old look. They now record LOOK_VERSION in the header; an older one is rebuilt from its original when the library is opened or Build Smart Previews runs, and kept as it is while the original is offline.
…f bright neighbours, binned previews clip before averaging (#548) Highlight reconstruction rebuilds clipped channels from the chromaticity of unclipped pixels nearby. Three changes to that colour: - an unclipped pixel counts by its brightness ((m / 0.8 clip)^4, at most 1), filled coarse to fine by push-pull, so dark wires across a bright cloud no longer tint it (the iPhone frame of #548 turned cyan at Highlights -100); - pixels within 6 px of clipping (partly demosaiced from clipped samples, 25 % greener than the sky on that frame) give no colour unless nothing else does; - the rebuilt colour is drawn toward neutral at its brightest channel as more channels clip ((n - 1 + s) / 2, s rising as the next channel nears its clip). Binned previews keep each channel the mean of its block and mark blocks with a clipped sample in a mask (develop_binned_masked, reconstruct_masked), instead of taking the block maximum: one clipped specular sample no longer becomes a green speckle at 500 px (HUAWEI PRA-LX1, WAS-LX1A). The denoised twin uses the same mask. Camera-colour fitting keeps the old binning. RENDER_CACHE_VERSION 26 (adjust at merge).
A registry of the background tasks in flight on Session: a job holds a TaskGuard while it runs (dropping it, also during a panic unwind, removes the row), adopts its existing cancel flag, and reports done/total in a unit the frontend words. Groundwork for one progress stack for imports, exports, preview builds and the other long jobs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The registry is reachable as commands, so the UI, the control channel, the CLI and MCP list and cancel background tasks the same way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every task in the engine's activity registry floats as a row under the top bar once it is half a second old: its name, a progress bar (a sweep while the amount of work isn't known), the count and what it is working on, and a cross for the ones that can be cancelled. Three rows, then "+N more". ui.inspect reports the same list as activity. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Quitting while an import, an export or another task that can be cancelled is running asks first: Quit Anyway cancels them (then any unsaved changes still get their own question), Cancel keeps working. Tasks without a cross (the face scan, AI Denoise) pick up again on the next launch and don't ask. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A background export registers in the activity stack with the photos done of the total and the file in progress; its cross and activity.cancel set the export's own cancel flag. The separate export panel at the bottom left is gone; the result toast is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An import (and Auto Import, and reading a folder for Local) registers in the activity stack with the files done of the total; its cross and activity.cancel set the import's cancel flag, so nothing new starts and the result still reads "Import cancelled · N added" as one undo step. The separate Importing window is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The cross sits at the right edge of its row (the name's area kept only the text's width, so the cross followed short names). Seen in the running app; a test pins it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The import review's folder scan (and reading a folder for Local) is a row in the activity stack: "Looking for photos…" while the folders are listed, then the files read of the total. Its cross drops the scan at once, without waiting for the file being read, as the old Cancel did. The separate Scanning window is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Build Previews, Build Smart Previews and Discard Smart Previews show a row with the photo count and stop from its cross; the start toast goes, the finish toast stays. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Inspecting and importing a Lightroom catalog show a row instead of the progress window; reading the catalog stops from its cross, adding the photos and saving the index run to the end. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The final HDR / panorama merge shows a row with its percentage and stage
instead of the progress toast, and stops from its cross ("HDR merge
cancelled"). The activity tests now let the first renders finish before
they run, and the half-second check tolerates a slow frame.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Downloading the SAM 3, face and AI Denoise models shows a row with the model's name and the megabytes so far; its cross stops the download like the Settings button. The denoise download tests get their own scratch folders (they shared the face tests' names and could delete each other's files). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
While photos are left to search for faces the stack shows "Finding faces" with how many are done (no cross: the scan is switched off in Settings). The engine keeps the scan's peak, so Settings and the stack agree. Also translates the "Downloading model" label. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
While a photo's AI Denoise picture is being made or waits its turn, the stack shows "AI Denoise" with the running photo's tiles as a percentage and its file name (no cross: what is made follows the Denoise amounts and Settings). The row goes when the queue is idle. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Find Missing Photos shows a row (a sweep: the amount of work isn't known, no cross) while it searches; the auto-import folder listing, which runs every few seconds, stays quiet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LR-BEHAV-BG-TASKS now cites activity.list / activity.cancel and lists every job on the stack; the import and Build Previews rows no longer describe progress windows and toasts; a what's-new entry. Fixes the stack not growing when tasks arrive while it already shows a row (an egui area lays out in last frame's size, and the scroll area took that as all the room, so later rows were cut off), and adds the Russian "Quit Anyway". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A cross clicked in the frame its task ended no longer puts "no task N" in the status bar: the row's cancel goes to the engine directly instead of through the app's command runner, which reports every error there. The face-scan row test scans demo photos no other scan test uses, so it no longer joins the scan deadlock of #630 (with one of the existing pump tests it hung 13 of 20 runs; now 0 of 20). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…stack Synchronize Folder (#604) shows its scan ("Looking for changes", while its dialog is open) and its run ("Synchronizing folder") as rows: the scan's cross stops it and closes the dialog, the run's stops it like Cancel did (what was done stays, as one undo step; the end says Stopped). Its progress window is gone. The contact-sheet PDF export (#563), which went through the export task already, gets a test for its row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge origin/main into #560 (fit_preview / camera-look refactors of #528, #583, #568, #616). `starting_colour` now tries the per-file camera-JPEG fit (with the camera profile when there is one) first and uses the spectral-sensitivity matrices only when that fit fails, before the neutral fallback, so no photo with an accepted JPEG fit changes. Tests pin the order through an injectable fit; docs, parity, ROADMAP and what's new describe it. RENDER_CACHE_VERSION 37 -> 38. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… by mistake) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CLAUDE.md gains the rule (a TaskGuard for every job that runs off the UI thread and can take more than a moment; no progress window, panel or toast of its own), and docs/background-tasks.md says how: kind, label, progress, units, detail, the three ways to cancel, examples and tests. Photo Merge's and the face scan's docs no longer describe the old progress toast. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…op of #607's reconstruction (#548) Main's reconstruction (#607) replaces this branch's rewrite of highlight::reconstruct. Kept from the branch: develop_binned_masked (clipping decided per sample before averaging) and the denoised twin using the same mask. New: highlight::reconstruct_masked, #607's reconstruction with the clipped channels told by the mask (block means as lower bounds), shared with reconstruct_with through a generic clip test (no slowdown on full-size images), and CameraColourModel::rebuild_highlights_masked so binned previews keep the colour model's clipped white. RENDER_CACHE_VERSION 38. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nance Merge origin/main into #555. The decode_hasselblad doc comment records how the coding rule was established (first hypothesis recalled by the AI author from training data that includes other converters, corrected for byte order and confirmed by a black-box search over 17,280 layout hypotheses on the CC0 files; the code is original). The LR-IMP-FORMATS row on main's text now lists the decoded FFF and lossless-JPEG 3FR files instead of preview-only. RENDER_CACHE_VERSION 37 -> 38. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ews (timed out on a loaded machine) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Samsung/Pentax rules (#281) Merge origin/main into #480 and apply the review: - the Samsung-with-a-Pentax-maker-note -> PEF rule now also needs raw evidence; its test fixture gets a CFA photometric, and the same RGB file without it is not a raw; - for the Pentax family the Exif CFAPattern (0xa302) counts as raw evidence, as main's PEF reader takes its layout from it (uncompressed / PackBits PEFs); - Samsung's private raw compressions 32769..=32773 count for SRW (NX1 / NX500 use 32773); - the engine fallback in files.rs is dropped (main's version kept): a corrupt raw without a preview stays an import error; the engine regression test for camera-authored TIFFs is kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e by side (merge put the flag on the wrong function) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ews (timed out on a loaded machine) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 10, 2026
M11.4: raws from 52 camera models start from matrices fitted to measured spectral sensitivities
#560
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Eight community PRs that needed maintainer work. Each change was made on the contributor's own branch as a merge commit (no force-push), then merged here with one merge commit per PR.
LR-IMP-FORMATS: decode packed 12-bit Sony ARW (DSLR-A900) from its exact 1.5 bytes per pixel strip #573 @radialmonster, packed 12-bit DSLR-A900 ARW:
a900_wbblock is gone;recorded_size_cropwith a flag only packed 12-bit files set;LR-EDIT-OPTICS-PROFILE: apply embedded A7R IVA distortion corrections #498 @QuirkyTurtle94, embedded A7R IVA distortion:
LR-EDIT-LIGHT-HIGHLIGHTS: partly clipped highlights take the colour of bright neighbours; previews clip before averaging (#548) #602 @radialmonster, Highlight recovery produces pink/magenta highlights in iPhone 15 Pro Max RAW photos #548 green speckles: rebuilt on LR-EDIT-LIGHT-HIGHLIGHTS: clipped highlights stay neutral when darkened (#523) #607's highlight reconstruction.
reconstruct_masked.Issue #345: activity stack — one progress indicator for long-running tasks #601 @cajax, activity stack. The author rebased; this branch adds one change, making the preview-build test build small previews (it timed out under load). Earlier fixes already on the branch:
lightcraft-mergeis a dev-dependency;M11.4: raws from 52 camera models start from matrices fitted to measured spectral sensitivities #560 @rossaai, spectral camera matrices:
LR-IMP-FORMATS: decode Hasselblad lossless JPEG with selection value 8 (FFF, H3D/H4D/CFV-50c 3FR) #555 @radialmonster, Hasselblad lossless JPEG, selection value 8.
decode_hasselbladdoc records the provenance: the first hypothesis was recalled by the AI author, corrected, and confirmed by exhaustive black-box search on CC0 files. The code is original.Fix TIFF detection for camera-authored files (#281) #480 @peiyan0, TIFF detection for camera-authored files ([BUG][MacOS] LightCraft doesn't display tif files #281):
LR-CLOUD-SMARTPREVIEW: smart previews record the camera-look fit version and are rebuilt when it is older #590 @radialmonster, smart previews record the camera-look version.
LOOK_VERSIONis 2.Fixes in this branch: #573's
centredcrop flag and #498's DefaultCrop helper were mixed up by the merge and are now side by side. #601's preview-build test builds small previews (it timed out at load average ~230). Render cache: renumbered at each merge, now 42.Verification
cargo xtask cion this head, with the full CC0 corpus downloaded (cargo xtask corpus --download), so the raw and engine corpus tests run on real files:🤖 Generated with Claude Code