Skip to content

feat(file-info): add Camera Settings MakerNotes section with Fujifilm support - #592

Merged
julyx10 merged 2 commits into
julyx10:mainfrom
fmontagut:feature/camera-settings-makernotes
Nov 25, 2026
Merged

julyx10 merged 2 commits into
julyx10:mainfrom
fmontagut:feature/camera-settings-makernotes

Conversation

@fmontagut

Copy link
Copy Markdown
Contributor

Summary

(from discussion #559) Adds a read-only, on-demand Camera Settings section (DetailSection::CameraSettings) to the File Info panel, scoped strictly to MakerNotes, with an initial verified set of Fujifilm fields.

No database schema changes, no XMP writeback changes, and no new dependencies.


Design Highlights

  • Section & Defaults:
    • New collapsible Camera Settings section in FileInfo.vue, collapsed by default (infoPanel.showCameraSettings: false).
    • All cameraSettings.* fields are excluded from defaultFileInfoFields initially (available via Customize fields → Show all or individual checkboxes) and respect Automatically hide empty fields.
  • Strict Source-Group Isolation:
    • "MakerNotes" is not added to TECHNICAL_GROUPS.
    • DetailField now supports an optional allowed_groups: Option<&[(&str, &str)]> filter matching both family0 and family1 (e.g. ("MakerNotes", "FujiFilm")). Standard EXIF fields in Source, Capture, and Location (such as EXIF:WhiteBalance and EXIF:Flash) can never be shadowed by MakerNotes.
  • Hybrid Field Structure (Fujifilm Initial Set):
    • Brand-specific keys: filmSimulation (FilmMode), dynamicRange (DynamicRangeSetting + DevelopmentDynamicRange / AutoDynamicRange / DynamicRange), highlightTone (HighlightTone), shadowTone (ShadowTone), grainEffect (GrainEffectRoughness + GrainEffectSize), colorChromeEffect (ColorChromeEffect), colorChromeFxBlue (ColorChromeFXBlue).
    • Shared cross-brand keys (scoped to ("MakerNotes", "FujiFilm") for now, extensible to Sony/Canon/Nikon/Leica in follow-up PRs): saturation (Saturation), sharpness (Sharpness), noiseReduction (NoiseReduction), clarity (Clarity), whiteBalanceShift (WhiteBalanceFineTune), focusMode (FocusMode), driveMode (DriveMode), imageStabilization (ImageStabilization).
    • ImageCount is deliberately not mapped to ShutterCount.
  • Graceful Formatting for Combined Fields:
    • format_fuji_dynamic_range and format_fuji_grain_effect format verified combinations (e.g., Auto (DR100), DR200, Weak / Small, Off) without inferring absent values when sub-tags are missing.

Performance Verification (Scan-Time & Detail-Loading)

Verified with exiftool-rs 1.0.0 against real sample sets from 3 Fujifilm camera generations (X-Pro1, X-Pro2, X-H2) across .JPG, .RAF, and .HEIC:

Camera & Sample Existing [*, XMP] (READER) [MakerNotes:*] only MakerNotes Extracted
X-Pro1 .JPG / .RAF 32.6 ms (cold) / 15.0 ms 13.0 ms / 8.5 ms 37 / 39
X-Pro2 .JPG / .RAF 3.9–4.3 ms / 5.1–5.6 ms 2.2–2.5 ms / 2.8–3.1 ms 45–48 / 47–50
X-H2 .HEIC / .RAF 9.9 ms / 8.1 ms 5.9 ms / 4.9 ms 64 / 66
  • read_options() is unchanged: Lap's existing READER (requested_tags: ["*", "XMP"]) already extracts all MakerNotes/FujiFilm tags across .JPG, .RAF, and .HEIC.
  • Scan-time impact: detail_values_for(&tags, true) (stored_only = true) skips all CameraSettings fields (stored: false), adding zero extra tag lookups during library scans.
  • Detail-load impact: extract_detail_values maps the CameraSettings keys from the already-extracted &[Tag] slice in memory (microseconds, no extra file I/O) and caches them in detail_cache; read_details retains only the requested section.

Tests & Verification

  • Rust (cargo test --bin Lap metadata::embedded): 27 passed; 0 failed (including 4 new tests in camera_settings_tests covering (family0, family1) group matching, standard EXIF isolation, missing/partial combined fields, and scan/section isolation).
  • Frontend (node --test tests/fileInfoMetadata.test.mjs): 27 passed; 0 failed (verifying default exclusion, collapsed-by-default behavior without IPC fetches, expanded rendering, and hidden state).
  • Build (vite build): Built cleanly with all 17 locale files updated.

@julyx10
julyx10 merged commit 439199d into julyx10:main Nov 25, 2026
4 checks passed
@julyx10

julyx10 commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Thanks for the PR. Merged!

I also added a small backend fix so ACROS, monochrome, and sepia simulations are correctly identified from Fujifilm’s Saturation tag and displayed under Film simulation, without duplicating them under Color.

Please feel free to continue with the next round of development as originally planned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants