You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9042b86
Browse filesBrowse the repository at this point in the historyBrowse files
LR-IMP-FORMATS: Build Smart Previews never converts a proxy from a newer build (storytold#1328 review)
Review of 0accb271: a format mismatch bypassed the forward-version guard.
smart_run ORed Ages::stale with "stored format differs from the one to
build", so an ordinary Build Smart Previews (no format asked for) rebuilt
a Lossless proxy under the default Compact preference, or a Compact one
under a Lossless preference, with this build's older look or decode and
stamped its versions: (look + 1, 0), (look - 1, source + 1) and
(look + 1, source + 1) all became (5, 1) in the other format. The opening
refresh kept them already.
A usable proxy is now classified first: one from a newer build
(smart::from_newer_build: its look or source version, or a Compact
proxy's encode version from storytold#850, above this build's) is kept as
it is, in its stored format, whatever format is preferred or asked for,
and counted as newerKept in the result; only a current or older one is
considered for a format conversion. A deliberate downgrade is not offered
(Discard removes the proxy). Ages::stale uses the same check.
source_version stays a field the writer owns.
Rebased onto storytold#1400 at cf1c803, which brings main b3d392b (batch 33 and
storytold#850): LOOK_VERSION is 5 there (storytold#1340), so this build writes look 5 /
source 1 (and Compact enc 2), which a build from main at look 5 takes as
current; RENDER_CACHE_VERSION goes to 65 (main is at 62).
Test: proxies at those three version pairs (and a Compact proxy from a
newer encoding) survive the opening refresh and Build Smart Previews for
both stored formats under both preferences, and are reported as newerKept
(6 of the 12 version-pair cases were rewritten before; the encoding case
is rewritten without its check).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/parity-checklist.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -442,7 +442,7 @@ differences and missing bindings are in [ui-parity.md](ui-parity.md#shortcuts).
442
442
| Id | Feature | Tier | Status | Evidence | Missing / notes |
443
443
|---|---|---|---|---|---|
444
444
| LR-CLOUD-SYNC | Cloud sync | OOS | 🚫 |||
445
-
| LR-CLOUD-SMARTPREVIEW | Editable proxies | P2 | ✅ | `cmd:library.smartPreviews`, `cmd:library.smartPreviewsLocation`, `cmd:library.smartPreviewsFormat`, `cmd:photo.smartPreview`, `crates/engine/src/smart.rs`, `crates/ui-egui/src/panels/settings.rs` | File ▸ Previews ▸ Build / Discard Smart Previews (on a worker thread, progress and Stop like Build Previews): Compact JPEG remains the default; an opt-in per-library lossless float TIFF format preserves decoded source precision (about 40 to 50 MB in two public Sony samples). The build menu can override the format. Before Lossless builds, the app shows the estimated total size (about 39.5 MB per A7CR proxy) and destination free space, with a warning when the estimate exceeds it. Rebuilds convert from available originals and retain offline proxies; mixed-format size accounting and old JPEG decoding are supported (`docs/smart-previews.md`); with the original offline the photo renders, edits and exports (at proxy size) from its proxy; Info shows the status; the proxy folder is chosen per library (Settings → Performance → Smart previews, saved in the library): the effective path, count and size are shown, changing it needs a choice for the proxies already built (move / leave / delete), and an unavailable or unwritable folder is an error, never a fallback to the library drive; proxies are written atomically and a damaged one (cut short by a crash or a full drive) doesn't count as built, is rebuilt (`repaired`) and is never moved over a good one (issue #106). Each proxy records the version of the camera-look fit that wrote it (`look_version`, `LOOK_VERSION` in `crates/engine/src/camera_preview.rs`, bumped whenever the fit changes), and a Compact proxy its JPEG encode version (`enc`, PR #850; Lossless keeps its own format version); only raws with the per-file camera look go stale (JPEG / PNG / DNG proxies are never rebuilt for it); one from an older fit is rebuilt from its original by a background scan the first time the library is opened at a new version (a `look-version` marker in the proxy folder keeps it to once per version) and by Build Smart Previews, and kept as it is while the original is offline (`docs/camera-preview-colour.md`). Raws' proxies also record the version of the raw decode that made their source (`source_version`, `smart::SOURCE_VERSION`, bumped when the decode gives different pixels at preview size, as #1328's demosaic does for previews `files::bin_factor` can't bin); every raw developed from its sensor data goes stale for it, with or without the per-file look, and is refreshed the same way (`source-version` marker). Such a refresh, like a look refresh, develops the original read afresh, never the proxy or a source decoded from it, and replaces the proxy in its own format; the thumbnail and decoded-source invalidation that follows is the one every proxy replacement takes (below). A proxy with either version newer than this build's is never replaced automatically, and the folder markers only move up (protection that holds for builds with this check; a build that knows only the look version still rewrites a newer source version). The thumbnail cache stays in the library. Background folder migration keeps the old folder on cancellation; a thumbnail namespace saved atomically with the folder prevents stale thumbnails after a process exit at preference saving, including cleanup spawn failure. A build, discard or look refresh that ends before its thumbnail clear (a quit or crash) leaves a marker in the thumbnail folder, and the next opening uses a new namespace; on a full library drive the run clears the thumbnail cache first and after each proxy it replaces, and a discard is never refused. A run's thumbnail clear moves the cache generation on at once and removes the files without holding the generation lock (until they are gone none is read from disk), so drawing never waits for the removal. A folder move leaves a proxy that does not decode (cut short, say) in the old folder and names it. Storage-dialog text, its buttons, the format command and count plurals are translated in all nine locales. Older versions cannot read Lossless proxies and drop the format and namespace preferences (`docs/smart-previews.md`). |
445
+
| LR-CLOUD-SMARTPREVIEW | Editable proxies | P2 | ✅ | `cmd:library.smartPreviews`, `cmd:library.smartPreviewsLocation`, `cmd:library.smartPreviewsFormat`, `cmd:photo.smartPreview`, `crates/engine/src/smart.rs`, `crates/ui-egui/src/panels/settings.rs` | File ▸ Previews ▸ Build / Discard Smart Previews (on a worker thread, progress and Stop like Build Previews): Compact JPEG remains the default; an opt-in per-library lossless float TIFF format preserves decoded source precision (about 40 to 50 MB in two public Sony samples). The build menu can override the format. Before Lossless builds, the app shows the estimated total size (about 39.5 MB per A7CR proxy) and destination free space, with a warning when the estimate exceeds it. Rebuilds convert from available originals and retain offline proxies; mixed-format size accounting and old JPEG decoding are supported (`docs/smart-previews.md`); with the original offline the photo renders, edits and exports (at proxy size) from its proxy; Info shows the status; the proxy folder is chosen per library (Settings → Performance → Smart previews, saved in the library): the effective path, count and size are shown, changing it needs a choice for the proxies already built (move / leave / delete), and an unavailable or unwritable folder is an error, never a fallback to the library drive; proxies are written atomically and a damaged one (cut short by a crash or a full drive) doesn't count as built, is rebuilt (`repaired`) and is never moved over a good one (issue #106). Each proxy records the version of the camera-look fit that wrote it (`look_version`, `LOOK_VERSION` in `crates/engine/src/camera_preview.rs`, bumped whenever the fit changes), and a Compact proxy its JPEG encode version (`enc`, PR #850; Lossless keeps its own format version); only raws with the per-file camera look go stale (JPEG / PNG / DNG proxies are never rebuilt for it); one from an older fit is rebuilt from its original by a background scan the first time the library is opened at a new version (a `look-version` marker in the proxy folder keeps it to once per version) and by Build Smart Previews, and kept as it is while the original is offline (`docs/camera-preview-colour.md`). Raws' proxies also record the version of the raw decode that made their source (`source_version`, `smart::SOURCE_VERSION`, bumped when the decode gives different pixels at preview size, as #1328's demosaic does for previews `files::bin_factor` can't bin); every raw developed from its sensor data goes stale for it, with or without the per-file look, and is refreshed the same way (`source-version` marker). Such a refresh, like a look refresh, develops the original read afresh, never the proxy or a source decoded from it, and replaces the proxy in its own format; the thumbnail and decoded-source invalidation that follows is the one every proxy replacement takes (below). A proxy with any version newer than this build's (look, source, or a Compact proxy's encode version) is never replaced, by the opening refresh or by Build Smart Previews, which keeps it in its stored format whatever format is preferred or asked for (`newerKept`), and the folder markers only move up (protection that holds for builds with this check; a build that knows only a newer look version still rewrites a newer source version). The thumbnail cache stays in the library. Background folder migration keeps the old folder on cancellation; a thumbnail namespace saved atomically with the folder prevents stale thumbnails after a process exit at preference saving, including cleanup spawn failure. A build, discard or look refresh that ends before its thumbnail clear (a quit or crash) leaves a marker in the thumbnail folder, and the next opening uses a new namespace; on a full library drive the run clears the thumbnail cache first and after each proxy it replaces, and a discard is never refused. A run's thumbnail clear moves the cache generation on at once and removes the files without holding the generation lock (until they are gone none is read from disk), so drawing never waits for the removal. A folder move leaves a proxy that does not decode (cut short, say) in the old folder and names it. Storage-dialog text, its buttons, the format command and count plurals are translated in all nine locales. Older versions cannot read Lossless proxies and drop the format and namespace preferences (`docs/smart-previews.md`). |
@@ -790,7 +790,7 @@ Latin stays upright. Advanced Japanese composition remains open. Regression cove
790
790
791
791
| Date | Change | Summary |
792
792
|---|---|---|
793
-
| 2026-10-13 | patch | LR-CLOUD-SMARTPREVIEW: raws' proxies record the raw decode version in both formats and are refreshed for it (#1328); a newer proxy is never rewritten and the markers only move up; status and counts unchanged |
793
+
| 2026-10-13 | patch | LR-CLOUD-SMARTPREVIEW: raws' proxies record the raw decode version in both formats and are refreshed for it (#1328); a newer proxy is never rewritten, nor converted to another format by Build Smart Previews, and the markers only move up; status and counts unchanged |
794
794
| 2026-10-13 | minor | LR-IMP-FORMATS: full-size developments demosaic the mosaic white balanced as shot and tell highlight reconstruction which channels were interpolated from clipped samples (issue #1328: no yellow, green, cyan or magenta outlines on neutral edges and around clipped highlights; measured channels kept, so dark detail against a clipped sky stays); LR-EDIT-LIGHT-HIGHLIGHTS notes the full-size clip mask; LR-CLOUD-SMARTPREVIEW: raws' proxies record and refresh on the raw decode's version; statuses unchanged |
795
795
| 2026-10-13 | patch | LR-CLOUD-SMARTPREVIEW: with PR #850 merged, Compact proxies are stored at JPEG quality 97 and rebuilt for an older encode version; a Lossless proxy's own `enc` is not read as that version; status and counts unchanged |
796
796
| 2026-10-13 | patch | LR-CLOUD-SMARTPREVIEW: a thumbnail clear moves the generation on under a short lock and removes the files after it, reading none from disk meanwhile (100,000 files held drawing for 6.7 s); status and counts unchanged |
0 commit comments