Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
84ae84c
Add people face grouping and scoped maintenance
1234destiny1234 Nov 29, 2026
acfe4d9
Merge branch 'staging' of https://github.com/emmertex/chromaforge int…
1234destiny1234 Nov 29, 2026
468e2cf
Format people clustering changes
1234destiny1234 Nov 30, 2026
a45b89a
Group unknown faces across the catalog
1234destiny1234 Nov 30, 2026
eea5ab3
Merge branch 'staging' of https://github.com/emmertex/chromaforge int…
1234destiny1234 Nov 30, 2026
beff217
#1735: guard wgpu queue on device loss, deduplicate iGPU, honor cache…
deunderscorepaul Nov 30, 2026
0d2e247
Merge remote-tracking branch 'origin/staging' into fix/1735-wgpu-lost…
deunderscorepaul Nov 30, 2026
43dea35
Address face grouping review feedback
1234destiny1234 Dec 1, 2026
cb44682
Issue #1732: add On This Day Memories
1234destiny1234 Dec 1, 2026
4fbf3b6
Fix Rust formatting for Memories changes
1234destiny1234 Dec 1, 2026
e32cd0f
Sort Memories locale catalog entries
1234destiny1234 Dec 1, 2026
302884d
Merge remote-tracking branch 'origin/staging' into pr-1701-head
emmertex Dec 1, 2026
5f9bc18
#1735: document and mark the vendored egui-wgpu lost-queue-submit patch
emmertex Dec 1, 2026
2530110
Merge remote-tracking branch 'origin/staging' into pr1746
emmertex Dec 1, 2026
b78bdce
Merge pull request #1746 from emmertex/fix/1735-wgpu-lost-igpu-faces
emmertex Dec 1, 2026
fb01ac8
Packaging: bundle libxkbcommon-x11 in the AppImage
emmertex Dec 1, 2026
8c120e1
Merge remote-tracking branch 'origin/staging' into claude/appimage-pr…
emmertex Dec 1, 2026
d750927
Merge pull request #1770 from emmertex/claude/appimage-pr-12926-revie…
emmertex Dec 1, 2026
1740135
Cmd/Ctrl+K focuses the Add Keyword box instead of toggling the side p…
emmertex Dec 1, 2026
ddaa0c0
Merge remote-tracking branch 'origin/staging' into claude/keywords-cm…
emmertex Dec 1, 2026
013140d
#1696: keep the Photo Grid size limit from collapsing for one-photo-p…
emmertex Dec 1, 2026
72d4253
#1696: finish unknown-face grouping and face-scoped maintenance
emmertex Dec 1, 2026
9e0c4bd
Merge pull request #1766 from 1234destiny1234/arena/42689546-lightcra…
emmertex Dec 1, 2026
47773db
Merge pull request #1701 from 1234destiny1234/arena/3182478d-lightcra…
emmertex Dec 1, 2026
6fa0aa8
Merge remote-tracking branch 'origin/staging' into claude/keywords-cm…
emmertex Dec 1, 2026
d396cb3
Merge pull request #1777 from emmertex/claude/keywords-cmd-k-focus-d6…
emmertex Dec 1, 2026
d802892
Docs: record Kaan88 GPL licensing consent
Kaan88 Dec 1, 2026
b2ec6e3
#1732: translate the On This Day sidebar row; Synchronize test scroll…
emmertex Dec 1, 2026
af4b6ea
Merge pull request #1779 from Kaan88/docs/gpl-consent-kaan88
emmertex Dec 1, 2026
3a7b048
FX-27: Lightroom import no longer marks rejected settings as an edit
blwfish Dec 1, 2026
e5e644c
FX-17: Lightroom import warns when History can't keep every step
blwfish Dec 1, 2026
f8b530b
Merge remote-tracking branch 'origin/staging' into fix/fx-17-27-lr-im…
blwfish Dec 1, 2026
1b34f2c
FX-13: Update DNG and Immich sidecar push merge by the sidecar save's…
blwfish Dec 1, 2026
d22b87a
Merge remote-tracking branch 'origin/staging' into fix/fx-13-merge-ru…
blwfish Dec 1, 2026
2aaf999
Merge pull request #1780 from emmertex/fix/nightly-2026-12-02-batch-t…
emmertex Dec 1, 2026
1f3875f
FX-185: export never writes at a missing original's path
blwfish Dec 1, 2026
5013619
FX-183: an Original export's sidecar never replaces another program's
blwfish Dec 1, 2026
45f3739
FX-184: export presets fail closed on unreadable privacy settings
blwfish Dec 1, 2026
5f56bde
FX-243: a waiting export takes the privacy choices made while it waited
blwfish Dec 1, 2026
231680f
Merge remote-tracking branch 'origin/staging' into fix/fx-13-merge-ru…
blwfish Dec 1, 2026
75de34b
Merge remote-tracking branch 'origin/staging' into fix/fx-17-27-lr-im…
blwfish Dec 1, 2026
81fba22
Merge pull request #1782 from blwfish/fix/fx-13-merge-rules-dng-immich
emmertex Dec 1, 2026
a487265
Merge pull request #1781 from blwfish/fix/fx-17-27-lr-import-warnings
emmertex Dec 1, 2026
4742278
FX-185: Edit In may still restore its own missing edit copy
blwfish Dec 1, 2026
c70e9f7
Merge remote-tracking branch 'origin/staging' into fix/fx-243-queued-…
blwfish Dec 1, 2026
99b2152
Merge remote-tracking branch 'origin/staging' into fix/fx-184-preset-…
blwfish Dec 1, 2026
6ec358e
Merge remote-tracking branch 'origin/staging' into fix/fx-183-185-ori…
blwfish Dec 1, 2026
bb91ca3
#1787: Lightroom import: map more smart-collection criteria
clydecbrown Dec 1, 2026
136f967
#1789: Double-clicking a smart collection opens its editor
clydecbrown Dec 1, 2026
c4e2f0f
#1791: With no photo selected, ← and → select the first and last phot…
clydecbrown Dec 1, 2026
aba8456
Merge pull request #1790 from clydecbrown/classic/fix/b-8a0b
emmertex Dec 1, 2026
d036d8c
Merge pull request #1788 from clydecbrown/classic/fix/lr-smart-criteria
emmertex Dec 1, 2026
21f5aa3
Merge pull request #1786 from blwfish/fix/fx-243-queued-export-privacy
emmertex Dec 1, 2026
9e3ce92
Merge pull request #1785 from blwfish/fix/fx-184-preset-privacy-fail-…
emmertex Dec 1, 2026
356f205
Merge pull request #1784 from blwfish/fix/fx-183-185-originals-guard
emmertex Dec 1, 2026
270081b
Merge pull request #1792 from clydecbrown/classic/fix/grid-left-right…
emmertex Dec 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ jobs:
run: |
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
build-essential pkg-config file \
libxkbcommon-dev libwayland-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev \
libxkbcommon-dev libxkbcommon-x11-0 libxcb-xkb1 libwayland-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev \
desktop-file-utils appstream python3-yaml zsync
curl -fsSL -o "$RUNNER_TEMP/nfpm.deb" \
"https://github.com/goreleaser/nfpm/releases/download/v${NFPM_VERSION}/nfpm_${NFPM_VERSION}_${{ matrix.deb }}.deb"
Expand Down Expand Up @@ -515,11 +515,20 @@ jobs:
. packaging/env.sh
dpkg-deb --contents dist/release/*.deb | grep -E "usr/bin/$BRAND_BINARY\$|metainfo|applications"
ldd "${CARGO_TARGET_DIR:-target}/${PACKAGE_PROFILE:-dist}/app"
readelf -d "${CARGO_TARGET_DIR:-target}/${PACKAGE_PROFILE:-dist}/app" | grep -F "(RPATH)" | grep -F "\$ORIGIN/../lib/$BRAND_BINARY"
cargo xtask package --render-only
python3 -c "import yaml, os; a = os.environ['BRAND_APP_ID']; m = yaml.safe_load(open(os.path.join(os.environ.get('CARGO_TARGET_DIR', 'target'), f'package/linux/flatpak/{a}.yml'))); assert m['id'] == a"
for appimage in dist/release/*.AppImage; do
chmod +x "$appimage"
APPIMAGE_EXTRACT_AND_RUN=1 "$appimage" --version
# The libraries winit opens at run time are inside, where the executable's DT_RPATH looks.
extract="$RUNNER_TEMP/appimage-extract"
rm -rf "$extract" && mkdir -p "$extract"
(cd "$extract" && "$OLDPWD/$appimage" --appimage-extract >/dev/null)
for soname in libxkbcommon.so.0 libxkbcommon-x11.so.0 libxcb-xkb.so.1; do
test -s "$extract/squashfs-root/usr/lib/$BRAND_BINARY/$soname"
done
rm -rf "$extract"
# Update information is embedded, and the .zsync for delta updates sits beside it.
"$appimage" --appimage-updateinformation | grep -F 'gh-releases-zsync|'
test -s "$appimage.zsync"
Expand Down
8 changes: 8 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -335,3 +335,11 @@ from RawTherapee's rtengine/rcd_demosaic.cc (https://github.com/Beep6581/RawTher
Luis Sanz Rodríguez and the RawTherapee developers, licensed under the GNU General Public License version 3
or later (text: LICENSE-GPL-3.0.txt). Modified by the Chromaforge contributors (2026): no tiling or SIMD,
mirror-reflected borders, guarded divisions.

Linux AppImage: keyboard libraries
----------------------------------
The Linux AppImage bundles libxkbcommon and libxkbcommon-x11 (https://xkbcommon.org, MIT
and X11-style licences) and libxcb-xkb (https://xcb.freedesktop.org, X11 licence), unmodified,
as Ubuntu 22.04 builds them, in usr/lib/chromaforge/, with their copyright files beside them as
LICENSE-libxkbcommon.txt and LICENSE-libxcb.txt. winit opens them at run time for the keyboard;
the AppImage carries them for desktops that do not have them installed.
9 changes: 9 additions & 0 deletions apps/app/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ fn main() {
println!("cargo:rerun-if-changed=build.rs");
#[cfg(target_os = "linux")]
embed_desktop_entry();
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("linux") {
// The libraries winit opens at run time (`libxkbcommon-x11.so.0` and the like) are looked up
// in `../lib/<binary>/` beside the executable first, where the AppImage bundles them
// (`packaging/linux/package.sh`); a system without them otherwise cannot open the window.
// DT_RPATH rather than DT_RUNPATH (`--disable-new-dtags`): only DT_RPATH also covers the
// bundled libraries' own dependencies (`libxcb-xkb.so.1`). Packages that bundle nothing there
// (deb, rpm, tarball) fall through to the system's libraries as before.
println!("cargo:rustc-link-arg-bins=-Wl,--disable-new-dtags,-rpath,$ORIGIN/../lib/{}", lcc_brand::BINARY);
}
println!("cargo:rerun-if-changed=../../assets/app-icon/app.ico");
let require = lcc_brand::env_var("REQUIRE_WINRES");
println!("cargo:rerun-if-env-changed={require}");
Expand Down
10 changes: 9 additions & 1 deletion apps/app/src/window_gpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,13 +295,18 @@ fn watch() -> std::sync::MutexGuard<'static, LossWatch> {
WATCH.lock().unwrap_or_else(std::sync::PoisonError::into_inner)
}

fn is_device_lost_status(status: &wgpu::CurrentSurfaceTexture, engine_lost: bool) -> bool {
engine_lost || matches!(status, wgpu::CurrentSurfaceTexture::Lost)
}

/// Watch the window's frames (see [`LossWatch`]); `which` is recorded in `files` when its device
/// is judged lost. egui-wgpu's own handling of each dropped frame is kept.
pub fn watch_device_loss(options: &mut WgpuConfiguration, files: std::sync::Arc<Files>, which: WindowRenderer) {
let inner = options.on_surface_status.clone();
options.on_surface_status = std::sync::Arc::new(move |status| {
let action = inner(status);
if counts_as_failure(status) && watch().dropped(std::time::Instant::now(), lcc_engine::gpu::last_loss().is_some()) {
let device_lost = is_device_lost_status(status, lcc_engine::gpu::last_loss().is_some());
if counts_as_failure(status) && watch().dropped(std::time::Instant::now(), device_lost) {
log::error!("window: the {} renderer has drawn nothing since its GPU device was lost ({status:?}); ending the run", which.name());
// on disk now: the process may yet be ended by hand
files.record_lost(which);
Expand Down Expand Up @@ -681,6 +686,9 @@ mod tests {
assert!(!counts_as_failure(&wgpu::CurrentSurfaceTexture::Timeout));
assert!(counts_as_failure(&wgpu::CurrentSurfaceTexture::Validation));
assert!(counts_as_failure(&wgpu::CurrentSurfaceTexture::Lost));
assert!(is_device_lost_status(&wgpu::CurrentSurfaceTexture::Lost, false));
assert!(!is_device_lost_status(&wgpu::CurrentSurfaceTexture::Validation, false));
assert!(is_device_lost_status(&wgpu::CurrentSurfaceTexture::Validation, true));
}

/// #1194: the renderer that lost its device is kept on disk, stops being the remembered one and
Expand Down
19 changes: 19 additions & 0 deletions crates/catalog/src/query.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//! Filtering, search and sorting.

use chrono::Datelike;
use serde::{Deserialize, Serialize};

use crate::{AlbumId, Catalog, ColorLabel, Flag, MediaKind, Photo, PhotoId};
Expand Down Expand Up @@ -107,6 +108,12 @@ pub struct Filter {
/// `dateTo` as a prefix upper bound (`2026-04` includes all of April).
pub date_from: Option<String>,
pub date_to: Option<String>,
/// Capture month and day (`MM-DD`), independent of year. Used by the Memories source.
#[serde(skip_serializing_if = "Option::is_none")]
pub capture_month_day: Option<String>,
/// Memories includes captures strictly before this calendar year.
#[serde(skip_serializing_if = "Option::is_none")]
pub capture_before_year: Option<i32>,
/// Import date prefix.
pub imported: Option<String>,
/// Imported at or after this time (ISO; Recently Added).
Expand Down Expand Up @@ -1226,6 +1233,18 @@ impl Filter {
{
return false;
}
if let Some(day) = self.capture_month_day.as_deref() {
let Some(captured) = p.captured.as_deref().filter(|c| c.get(..10).is_some()) else { return false };
// Parse the stored prefix directly: capture_start deliberately turns a year/month-only
// timestamp into the first day of its period, but that is not a known capture day.
// Malformed and non-ASCII metadata simply won't match.
let Some(date) = captured.get(..10).and_then(|s| chrono::NaiveDate::parse_from_str(s, "%Y-%m-%d").ok()) else {
return false;
};
if date.format("%m-%d").to_string() != day || self.capture_before_year.is_some_and(|year| date.year() >= year) {
return false;
}
}
if let Some(l) = &self.lens
&& !p.meta.lens.to_lowercase().contains(&l.to_lowercase())
{
Expand Down
16 changes: 16 additions & 0 deletions crates/catalog/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,22 @@ mod filter_deserialize_tests {
}
}

#[test]
fn memories_match_the_calendar_day_only_in_past_years() {
let mut c = Catalog::new();
let old = photo(&mut c, "old.jpg", "2021-11-30T08:00:00");
let newer = photo(&mut c, "newer.mov", "2025-11-30T09:00:00");
let this_year = photo(&mut c, "today.jpg", "2026-11-30T10:00:00");
let other_day = photo(&mut c, "yesterday.jpg", "2025-11-29T10:00:00");
let partial = photo(&mut c, "partial.jpg", "2025-11");
let filter = Filter { capture_month_day: Some("11-30".into()), capture_before_year: Some(2026), ..Default::default() };
let got = c.query(&filter, &Sort { ascending: true, ..Default::default() });
assert_eq!(got, vec![old, newer]);
assert!(!got.contains(&this_year));
assert!(!got.contains(&other_day));
assert!(!got.contains(&partial), "a month-only date is not a calendar-day match");
}

#[test]
fn date_token_matches_time_part_case_insensitively() {
let mut c = Catalog::new();
Expand Down
2 changes: 1 addition & 1 deletion crates/develop/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub mod tone_eq;
pub mod vignetting_calibration;

pub use controls::{CONTROLS, ControlSpec, Section, Shade, Track};
pub use presets::{Preset, SettingItem, SettingsGroup, SettingsPick, apply_partial, extract_groups};
pub use presets::{Preset, SettingItem, SettingsGroup, SettingsPick, apply_partial, extract_groups, try_apply_partial};
pub use retouch::{MAX_RETOUCH_MASKS, PartRequest, Retouch, RetouchAnalysis, RetouchMask, RetouchPart, RetouchTeeth};
pub use segmask::SegMask;
pub use settings::*;
Expand Down
26 changes: 23 additions & 3 deletions crates/develop/src/presets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -705,17 +705,23 @@ fn blend_curves(b: &[(f64, f64)], p: &[(f64, f64)], t: f64) -> Value {
/// Apply a partial settings object with an amount (1.0 = 100 %; blending rules: [`scale_patch`]).
/// Out-of-range values are clamped through the control specs, as every merge does
/// ([`DevelopSettings::merged`]).
/// At 0 % nothing changes; at 100 % the partial is merged as it is.
/// At 0 % nothing changes; at 100 % the partial is merged as it is. A partial the merge rejects
/// leaves `s` as it was; callers that must tell the user use [`try_apply_partial`].
pub fn apply_partial(s: &DevelopSettings, partial: &Value, amount: f64) -> DevelopSettings {
try_apply_partial(s, partial, amount).unwrap_or_else(|_| s.clone())
}

/// [`apply_partial`], with a rejected merge returned as the error instead of `s` unchanged.
pub fn try_apply_partial(s: &DevelopSettings, partial: &Value, amount: f64) -> Result<DevelopSettings, serde_json::Error> {
if amount <= 0.0 {
return s.clone();
return Ok(s.clone());
}
// (a map named without an amount comes at 100 %, which the strength then blends: `DevelopSettings::merged`)
let partial = crate::vignetting_calibration::complete_partial(partial);
let partial = partial.as_ref();
let patch = if (amount - 1.0).abs() < 1e-9 { Cow::Borrowed(partial) } else { Cow::Owned(scale_patch(&blend_base(s), partial, amount)) };
// (a white balance without a scale keeps its old meaning: `DevelopSettings::merged`)
s.merged(&patch).unwrap_or_else(|_| s.clone())
s.merged(&patch)
}

/// `s` as the base a partial's numbers blend from: every group written out, also the ones
Expand Down Expand Up @@ -1338,4 +1344,18 @@ mod tests {
ids.dedup();
assert_eq!(ids.len(), 3, "{:?}", out.masks);
}

/// A partial the merge rejects is an error from `try_apply_partial`, so a caller can say so; `apply_partial` keeps
/// its old contract and returns the settings unchanged. At 0 % nothing is merged, so nothing can be rejected.
#[test]
fn a_rejected_partial_is_an_error_not_a_silent_no_op() {
let s = DevelopSettings::default();
let bad = json!({"light": {"exposure": "bright"}});
assert!(try_apply_partial(&s, &bad, 1.0).is_err(), "a text exposure should be rejected");
assert!(try_apply_partial(&s, &bad, 0.5).is_err(), "also when blended");
assert_eq!(try_apply_partial(&s, &bad, 0.0).ok(), Some(s.clone()), "0 % merges nothing");
assert_eq!(apply_partial(&s, &bad, 1.0), s, "the infallible form still returns the settings unchanged");
let good = try_apply_partial(&s, &json!({"light": {"exposure": 0.5}}), 1.0).unwrap();
assert_eq!(good.light.exposure, 0.5);
}
}
11 changes: 10 additions & 1 deletion crates/engine/src/cmd/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,16 @@ fn edit_copy(s: &mut Session, p: &Value, id: lcc_catalog::PhotoId, opts: &crate:
Ok(())
};
// (written durably through `write`, which records the file: no separate new-file writer)
let to = crate::export::Destination { dir: dir.clone(), exact: None, write_new: None };
// the photo's own `-Edit` copies whose file is gone may be written again: the import below relinks them (FX-185)
let restores = s
.catalog
.photos()
.filter_map(|c| match &c.source {
Source::File { path } if is_edit_copy_name(&ph.file_name, &dir, path) && !Path::new(path).exists() => Some(path.clone()),
_ => None,
})
.collect();
let to = crate::export::Destination { dir: dir.clone(), exact: None, write_new: None, restores };
crate::export::export_batch(s, &[id], opts, &to, &mut write, &|path| Path::new(path).exists()).map_err(|e| bad(cmd, e))?;
let ext = format!(".{}", opts.format.extension());
let out = written.into_iter().find(|w| w.ends_with(&ext)).ok_or_else(|| bad(cmd, "nothing was written"))?;
Expand Down
26 changes: 23 additions & 3 deletions crates/engine/src/cmd/export_preset_files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,16 +476,32 @@ pub fn lr_export_params(v: &Lua) -> (Map<String, Value>, Vec<String>) {
Some("none") => {
o.insert("metadata".into(), json!("none"));
}
Some(other) => unmapped.push(format!("metadata `{other}`")),
// an option this table doesn't know fails closed: nothing is embedded, and the report says so (FX-184)
Some(other) => {
o.insert("metadata".into(), json!("none"));
unmapped.push(format!("metadata `{other}` (not known: no metadata is embedded; choose a setting in the Export dialog)"));
}
None if lget(v, "embeddedMetadataOption").is_some() => {
o.insert("metadata".into(), json!("none"));
unmapped.push("metadata (not readable: no metadata is embedded; choose a setting in the Export dialog)".into());
}
None => {}
}
if lbool(v, "minimizeEmbeddedMetadata") == Some(true)
&& !matches!(policy.as_deref(), Some("copyrightonly" | "copyright" | "copyrightandcontactonly" | "copyrightandcontact" | "none"))
{
o.insert("metadata".into(), json!("copyright"));
}
if let Some(b) = lbool(v, "removeLocationMetadata") {
o.insert("removeLocation".into(), json!(b));
match lbool(v, "removeLocationMetadata") {
Some(b) => {
o.insert("removeLocation".into(), json!(b));
}
// stated but not readable as on or off: location is removed, and the report says so (FX-184)
None if lget(v, "removeLocationMetadata").is_some() => {
o.insert("removeLocation".into(), json!(true));
unmapped.push("remove location info (not readable as on or off: location is removed)".into());
}
None => {}
}
// ---- what the app can't do (reported when it is on)
if lbool(v, "useWatermark") == Some(true) {
Expand All @@ -511,6 +527,10 @@ pub fn lr_export_params(v: &Lua) -> (Map<String, Value>, Vec<String>) {
o.insert("removePersonInfo".into(), json!(true));
}
Some(false) => unmapped.push("person info (face regions are never written)".into()),
None if lget(v, "removeFaceMetadata").is_some() => {
o.insert("removePersonInfo".into(), json!(true));
unmapped.push("remove person info (not readable as on or off: person info is removed)".into());
}
None => {}
}
if lbool(v, "includeVideoFiles") == Some(false) || lstr(v, "export_videoFileHandling").is_some_and(|s| s.eq_ignore_ascii_case("exclude")) {
Expand Down
Loading
Loading