Skip to content

feat(file-info): add Canon, Nikon, Sony, and Panasonic/Leica Camera Settings MakerNotes support - #593

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

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

Conversation

@fmontagut

@fmontagut fmontagut commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

I've opened the next round of Camera Settings MakerNotes support covering Canon, Nikon, Sony, and Panasonic / Leica, verified against real RAW/JPEG samples from each brand.

Since the field list grows across brands, I also added brand filter pills and a per-brand Select all / Deselect all toggle in Customize fields so single-brand users can configure their camera in two clicks without changing the config schema. Olympus / OM System and Ricoh / Pentax can follow next. I checked Hasselblad but they do not generate any Makernotes information.

Summary

Builds on #592 to extend the read-only Camera Settings MakerNotes section in File Info to Canon, Nikon, Sony, and Panasonic / Leica, while keeping Fujifilm behavior (including ACROS/Monochrome/Sepia Saturation handling) unchanged.

To keep the Customize fields dialog ergonomic as more brands are added, this PR also adds brand filter pills and a quick Select all / Deselect all toggle to the Camera Settings section.

Key Changes

Backend (src-tauri/src/metadata/)

  • Tag-level MakerNotes matching (schema.rs, embedded.rs): Replaced allowed_groups (family0, family1) with priority-ordered maker_sources (family0, family1, tag_name) triples so brand-specific tag names cannot collide across brands or shadow standard EXIF tags.
    • Strictly scoping to MakerNotes/Canon avoids duplicate tags in Canon .CR3 Track4.
    • Strictly scoping to MakerNotes/Sony avoids lookup-table ColorMode entries in Sony SR2DataIFD* groups.
  • Placeholder value filtering (embedded.rs): Filters out non-values ("", "n/a", "(none)") such as Nikon Z6/Z30 "n/a" entries when PictureControlName is Auto.
  • White balance shift formatting (embedded.rs): Combines WBShiftAB + WBShiftGM into "AB <ab>, GM <gm>" for Canon and Panasonic while preserving Fujifilm formatters (DynamicRange, GrainEffect, and ACROS/Monochrome/Sepia Saturation handling).
  • New & extended fields:
    • Shared: added contrast and shutterCount (strictly ShutterCount on Nikon/Sony — never ImageCount); extended saturation, sharpness, noiseReduction, clarity, whiteBalanceShift, focusMode, driveMode, and imageStabilization across supported brands.
    • Canon: pictureStyle, autoLightingOptimizer, highlightTonePriority.
    • Nikon: pictureControl, activeDLighting.
    • Sony: creativeStyle, pictureProfile, pictureEffect, dynamicRangeOptimizer.
    • Panasonic / Leica: photoStyle, intelligentDRange (Leica D-Lux uses MakerNotes/Panasonic; native Leica M/SL uses MakerNotes/Leica).

Frontend (src-vite/)

  • Registry & File Info (fileInfoFields.ts, FileInfo.vue): Wired all 13 new keys into cameraSettings (still excluded from defaultFileInfoFields; section remains collapsed by default).
  • Brand filter in Customize Fields (FileInfoFieldsDialog.vue): Added compact brand filter pills (All, Fujifilm, Canon, Nikon, Sony, Panasonic / Leica) and a Select all / Deselect all toggle scoped to the currently visible brand's fields. Filtering is view-only and requires no persisted config schema changes.
  • Locales (src-vite/src/locales/*.json): Added labels for all new fields and file_info.all_brands across all 17 locale files.

Scope & Constraints

  • Strictly read-only (no database schema or XMP writeback changes).
  • Sample camera files used for verification are excluded from the commit.

Verification

  • Probed and visually verified in-app with real sample files across Canon (.CR2, .CR3), Nikon (.NEF), Sony (.ARW, .SR2), Panasonic (.RW2), Leica (.RWL, .DNG), and Fujifilm (.RAF, .JPG). Files obtained from raw pixls.us repository (https://raw.pixls.us/#repo).
  • Rust unit tests: cargo test --bin Lap --offline metadata::embedded — 33 passed, 0 failed (including 10 camera_settings_tests covering Fujifilm, Canon, Nikon, Sony, and Panasonic/Leica edge cases).
  • Frontend unit tests: node --test tests/fileInfoMetadata.test.mjs — 27 passed, 0 failed (including brand filter assertions and locale key coverage across all 17 languages).
  • Production frontend build: npx vite build — clean build.

Next Round

Olympus / OM System and Ricoh / Pentax are planned for the next follow-up PR. Additional brands can be added based on user's inputs

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

julyx10 commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Great work! Merged. Thanks for the contributions! 👍👍👍

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