Skip to content

LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust

Merge remote-tracking branch 'origin/main' into lock-unlock-on-drop

Jason Baldwinbf4a271a7149
diff --cc docs/whats-new.md
index 53b5093d0,f3fb3a143..312b5b54a
--- a/docs/whats-new.md
+++ b/docs/whats-new.md
@@@ -214,79 -272,9 +272,14 @@@
existing LightCraft edits are preserved by default. Source settings/history are archived, unsupported
fields are reported, and the original Lightroom database stays read-only. Rendering is approximate.
- ### Formats
- - HEIC / HEIF photos (iPhone and Mac) open now: the optional `lightcraft-heif` crate (heic-rs, pure Rust) behind
- codecs' `heif` feature — 8- and 10-bit, alpha, grid tiles, the container's rotation/mirror/crop, ICC, EXIF and XMP.
- Off by default (HEVC patents are the distributor's call, same as PhotoCraft); official builds pass `--features heif`.
- - HEIC colours now match libheif to within one code value (they were up to ~10 off): the HEVC stream's own
- full-range/matrix signalling is honoured (iPhone photos are full range), chroma is upsampled like libheif, grids
- take their tiles' ICC profile, and `imir` mirrors the way libheif writes it. Importing a HEIC reads its size from
- the container instead of decoding it; small previews use the file's embedded thumbnail. The release packages
- (macOS, Windows, Linux, FreeBSD, Nix) now really are built with HEIC support; a build without it reports
- "HEIC/HEIF support isn't included in this build" for each `.heic`/`.heif` at import.
-
- ### Presets and profiles
- - Import presets from other editors: XMP presets, classic `.lrtemplate` files, "DNG presets" from mobile apps and `.zip`
- bundles of any of these — whole folders at once, grouped by pack. Masks inside presets come along.
- - Luminar looks: `.lmp` files and `.mplumpack` collections import as presets (grouped by collection); the sliders
- with a counterpart here come along, the rest is listed.
- - 23 new built-in presets: Portrait, Landscape, Urban, Food, Seasons, Vintage and B&W toners.
- - Importing XMP presets no longer lists bookkeeping fields (`Cluster`, `SortName`, `SupportsAmount2`, the as-shot
- white, empty Point Color slots…) as settings that couldn't be carried over.
- - A preset whose lens-profile switch is off no longer turns off the lens corrections built into a DNG (iPhone ProRAW
- and other files with embedded distortion / vignetting corrections), matching what the preset does elsewhere.
- - XMP presets apply their red / green / blue curves only when they also have the master curve and all three channel
- curves, as Lightroom does: a preset with just one channel curve (or no master curve) leaves the channels alone.
- - Imported `.cube` LUT profiles appear in the Profile menu and the profile browser, grouped by their folder, and stay
- favourites across restarts (issue #328).
-
- ### Editing
- - The Tint slider works the right way round (issues #188, #321): left adds green, right adds magenta, as its track
- shows and as in Lightroom, and Tint values in Lightroom XMP sidecars now render as they do there. A custom Tint
- saved in an earlier version now shifts the other way; set it again (or re-run Auto / the white-balance picker).
- - White balance on DNGs (and other raws with a colour matrix) re-develops the photo for the new white through the
- camera's own colour matrices, as Lightroom does, instead of shifting the colours of the as-shot rendering: a grey
- lit by the chosen white comes out grey and saturated colours move as the camera records them. The eyedropper and
- Auto use the same model. Custom white balances on these photos render slightly differently than before.
- - Crop (issue #295): a Lock toggle keeps the aspect ratio on every handle, Custom takes your own ratio (Apply), and
- dragging a handle into the image edge stops there instead of pushing the crop out of shape.
-
- ### Library and views
- - Trackpads: pinch to zoom around the pointer and scroll with two fingers to pan the photo; panning keeps the photo
- inside the view. A plain mouse wheel over a zoomed photo pans it too.
- - A Folders section in the sidebar lists the folders your photos were imported from; choose one to see its photos.
- - Select All and multi-selection show every selected photo in the grid and filmstrip, not only the active one
- (issues #187, #298). Importing files that are in Recently Deleted asks whether to leave them there, restore them
- (with their edits) or import them as new; the trash view's Photo menu has Empty Recently Deleted.
- - The Import Photos review opens bigger and can be resized; its photo grid fills it (issue #337). Shift-click checks
- or unchecks a range of photos (issue #338).
- - When a folder holds several file types, the Import Photos review has a toggle per type (`ARW · 120`, `JPG · 120`):
- import only the raws and leave the JPEGs beside them (issue #344).
-
- ### Languages
- - The interface is available in Spanish (issue #371), German and Russian (Edit ▸ Language), alongside English,
- Chinese (Simplified and Traditional), Japanese and Brazilian Portuguese.
-
- ### Editing
- - Type an exact value into any slider (issue #322): click the number next to its name, type (`1.5`, `-20`, `5600`)
- and press Return; Esc keeps the old value.
-
- ### Editing
- - The eye on the Light, Color and Detail section headers now hides their adjustments, as it already did for Effects,
- Optics, Geometry and Calibration (issue #316).
-
- ### Library
- - Choosing a date under By Date or a keyword under Keywords shows those photos from All Photos, as their counts
- promise, instead of filtering whatever album or folder was open, which often showed nothing (issue #341).
- )
- )
+ ## 2026-10-05
### Reliability
+- Closing a library releases its lock explicitly (issue #680). On Linux and macOS the lock used to go with the file
+ handle, and a program being started by another thread at that moment held a copy of the handle until it was fully
+ launched, so reopening the library straight away could be refused with "This library is already open in another
+ LightCraft program" although nothing had it open. Nothing in the shipped app is known to hit the window today; it
+ made a lock test flaky, and the fix closes the window for good.
- The Windows installer asks where to install LightCraft (Program Files by default; upgrades keep the folder you
chose) and ends on a page saying it was installed, with a "Launch LightCraft" box. It used to finish without a word,
so a successful install looked like nothing had happened (issues #18, #399). Silent installs (`/qn`, `/passive`)