LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust
Merge PR #1901: LR-EDIT-OPTICS-PROFILE: apply A7CR embedded distortion for corrected full-frame raws
aiongg04b099a4f55e
diff --cc crates/engine/src/camera_preview.rsindex 3850c2ea3,ef50dac1a..caa243576--- a/crates/engine/src/camera_preview.rs+++ b/crates/engine/src/camera_preview.rs@@@ -34,11 -34,8 +34,12 @@@ use lightcraft_raw::/// 7: the sensor proxy follows the file's lens warp when the camera JPEG is lens-corrected./// 8: the bundled NIKON Z 6_2 profile./// 9: the bundled NIKON Z 8 and NIKON D5300 profiles.+/// 10: DNG tone fit for profiles with a look table and for 1024 px (Lightroom) previews.+/// 12: tone curves of low-contrast scenes (range limit 1.2, with the bright-area check for curves under 1.5, #699).+/// 10: tone-only fallback for near-black scenes with too few colour pairs (#1587).+/// 10: DNG tone fitting uses a lens-corrected proxy when the file carries lens opcodes.+ /// 11: validated A7CR distortion, including the lens data stored with each smart preview.-pub const LOOK_VERSION: u32 = 11;+pub const LOOK_VERSION: u32 = 12;#[derive(Clone, Debug)]pub(crate) struct CameraLook {diff --cc docs/whats-new.mdindex 5384d101a,04c046636..16c688f5c--- a/docs/whats-new.md+++ b/docs/whats-new.md@@@ -1,63 -1,12 +1,68 @@@# What's new in LightCraft+## 2026-10-19++### Hidden Local locations come back one at a time+- With several locations removed from Local, "Show N hidden locations" now lists them, so each comes back on its own+ (Restore All is there too). The row used to bring every hidden location back at once (issue #2114).++## 2026-10-18++### Thumbnails of Lightroom HDR and panorama merges in a second+- Grid and filmstrip thumbnails of DNGs that Lightroom merged (HDR, Panorama, HDR Panorama) now develop from the+ small copies of the raw image Lightroom keeps inside the file (256 to 2048 px), not from the whole merge. A 23836 ×+ 7078 drone panorama's 512 px thumbnail took 38 s and now takes about a second, with the same look; your edits still+ apply. Loupe previews larger than the biggest copy, 1:1 views and exports still read the full image.++### Fill Location from GPS: no more neighbouring town in City+- The offline place names list towns of 15,000 people or more, so a photo taken in a smaller one got the nearest larger+ town in City, sometimes another municipality (issue #2242). The Fill Location tooltip and the command help now say so,+ and `metadata.reverseGeocode` takes `maxDistance` (metres): past it, City stays empty (State and Country still fill)+ and the reply names the town it found as `nearestCity`.++### A preset that couldn't be saved is no longer lost silently+- When presets.json can't be written (a full disk, or the browser's storage quota), the new or changed preset now+ counts as unsaved, like other changes: the top bar warns, saving is retried, and quitting asks first (issue #2266).+ Before, the failure was only logged, and the preset could be lost without any warning.++### Portrait crop ratios stay portrait+- A crop ratio no longer flips to the photo's orientation (issue #2253): after X turns the crop portrait, picking+ another ratio (4 × 5, 2 × 3…) keeps it portrait, as in Lightroom, and a Custom ratio taller than wide gives a+ portrait crop.++## 2026-10-15++### Constrain Crop tightens the crop you see+- Geometry ▸ Constrain Crop now changes the crop itself, as in Lightroom (issue #1927). Ticking it, or moving a+ Geometry slider, Upright or a lens correction while it is ticked, shrinks the crop about its centre until the blank+ corners left by the correction are gone, and the Crop tool shows the tighter crop. Before, it only applied when the+ photo was shown outside the Crop tool, so in the Crop panel, where the checkbox is, nothing seemed to change. A crop+ you draw by hand is kept as drawn, and unticking keeps the tighter crop.++### Web: no backup that misses unsaved changes+- In the browser version, File ▸ Back Up Library… no longer reports success while a save is failing (storage full or+ cleared): the backup copies the stored library, so it left out the changes that couldn't be saved (issue #1508). It+ now refuses to start and says how many changes are unsaved and why. LightCraft retries the save with every change;+ back up once nothing is left unsaved.++### Web: an unreadable library is not opened+- In the browser version, a library file that exists but can't be read at start-up is no longer taken for a missing+ one (issue #1507). LightCraft used to open the library without it, showing an incomplete catalog that the next save+ would write over the stored copy. It now leaves the library unopened, saves nothing and says which file couldn't be+ read; reload the page to try again.+## 2026-10-14+### Model downloads time out on a name that doesn't resolve+- Model downloads (AI denoise, faces, SAM) give up on a server name that doesn't resolve within the connect timeout,+ and Cancel stops a download that is still looking the name up (issue #1532). The lookup used to block with no time+ limit, and each of a server's addresses then got the whole connect timeout of its own.++ ### Sony A7CR distortion correction++ - Full-frame 3:2 Bayer A7CR raws with distortion Auto or forced Auto now use their embedded distortion table. The corrected render is closer to the camera JPEG geometry. Off files keep their original geometry. APS-C, aspect crops and lossless M/S remain excluded.+ - The warp also supplies the geometry needed by the lens-aligned camera-look fit in PR #1586. The pairing code is a separate change. Details and numeric validation are in `docs/sony-lens-corrections.md`.+### Lightroom radial masks on the right side- Radial masks brought over from Lightroom Classic (catalog import, XMP sidecars, edits inside DNGs and presets) nowapply their effect inside the circle, as Lightroom does, instead of outside it (issue #1815). A mask inverted in