From ef7f99d12fe5d28d8992c6a47fc23c8ed684eedf Mon Sep 17 00:00:00 2001 From: eliets2 Date: Thu, 5 Nov 2026 22:12:00 +0200 Subject: [PATCH] Add GFX100S II to the spectral camera matrix table (#3139) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GFX100S II is a current Fujifilm body with no measured-matrix path, so any photo its JPEG fit does not accept falls to the neutral fallback instead of step 4's matrices. A unit test pins spectral::find to GFX 100's matrix for this model, following the existing GFX100S → GFX 100 same-sensor pattern. Add ("Fujifilm", "GFX100S II", "GFX 100") to SAME_SENSOR next to the other Fujifilm same-sensor rows, plus a unit test asserting the lookup returns GFX 100's matrices (fails today, passes after the edit). Test: gfx100s_ii_uses_gfx_100_matrices failed before the change and passes after. Co-authored-by: eliets2 <287273517+eliets2@users.noreply.github.com> Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com> --- crates/raw/src/spectral.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/crates/raw/src/spectral.rs b/crates/raw/src/spectral.rs index 6c4e7c46ce..95e4cc6f4b 100644 --- a/crates/raw/src/spectral.rs +++ b/crates/raw/src/spectral.rs @@ -47,10 +47,12 @@ impl Camera { } } -/// `(make, model as sold, table model)`: bodies sharing a table camera's sensor that rawtoaces-data's alias list +/// `(make, model as sold, table model)`: bodies using a table camera's data that rawtoaces-data's alias list /// doesn't name, kept here because the table is generated. Fujifilm's 26.1 MP X-Trans CMOS 4 bodies use the X-T3's /// or X-T4's sensor (X-T30 issue: a black-and-white Acros camera JPEG gives no colour to fit, and without matrices the photo /// opened in the muted neutral fallback). +/// The GFX100S II has no measured data of its own: it borrows the GFX 100's matrices as the nearest medium-format +/// body in the table, which is closer than the neutral camera-RGB-approximately-sRGB fallback but not its own sensor. const SAME_SENSOR: &[(&str, &str, &str)] = &[ ("Fujifilm", "X-T30", "X-T3"), ("Fujifilm", "X-T30 II", "X-T3"), @@ -60,6 +62,7 @@ const SAME_SENSOR: &[(&str, &str, &str)] = &[ ("Fujifilm", "X-E4", "X-T3"), ("Fujifilm", "X-S20", "X-T4"), ("Fujifilm", "X-M5", "X-T3"), + ("Fujifilm", "GFX100S II", "GFX 100"), ]; /// Model names compared without case, the brand, a leading `EOS` or a trailing `DIGITAL` @@ -178,6 +181,13 @@ mod tests { } } + #[test] + fn gfx100s_ii_uses_gfx_100_matrices() { + // GFX100S II is not in the table, so its raws never get step 4's measured matrices + // and fall back to step 5's neutral camera-RGB-approximately-sRGB. + assert_eq!(find(Some("FUJIFILM"), "GFX100S II").map(|c| c.model), Some("GFX 100"),); + } + #[test] fn other_cameras_and_other_makes_find_nothing() { assert_eq!(find(Some("Canon"), "Canon EOS 7D"), None);