Repository navigation
feat(file-info): add Camera Settings MakerNotes section with Fujifilm support - #592
Merged
julyx10 merged 2 commits intoNov 25, 2026
Merged
Conversation
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
FileInfo.vue, collapsed by default (infoPanel.showCameraSettings: false).cameraSettings.*fields are excluded fromdefaultFileInfoFieldsinitially (available via Customize fields → Show all or individual checkboxes) and respect Automatically hide empty fields."MakerNotes"is not added toTECHNICAL_GROUPS.DetailFieldnow supports an optionalallowed_groups: Option<&[(&str, &str)]>filter matching bothfamily0andfamily1(e.g.("MakerNotes", "FujiFilm")). Standard EXIF fields inSource,Capture, andLocation(such asEXIF:WhiteBalanceandEXIF:Flash) can never be shadowed by MakerNotes.filmSimulation(FilmMode),dynamicRange(DynamicRangeSetting+DevelopmentDynamicRange/AutoDynamicRange/DynamicRange),highlightTone(HighlightTone),shadowTone(ShadowTone),grainEffect(GrainEffectRoughness+GrainEffectSize),colorChromeEffect(ColorChromeEffect),colorChromeFxBlue(ColorChromeFXBlue).("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).ImageCountis deliberately not mapped toShutterCount.format_fuji_dynamic_rangeandformat_fuji_grain_effectformat 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.0against real sample sets from 3 Fujifilm camera generations (X-Pro1, X-Pro2, X-H2) across.JPG,.RAF, and.HEIC:[*, XMP](READER)[MakerNotes:*]only.JPG/.RAF.JPG/.RAF.HEIC/.RAFread_options()is unchanged: Lap's existingREADER(requested_tags: ["*", "XMP"]) already extracts allMakerNotes/FujiFilmtags across.JPG,.RAF, and.HEIC.detail_values_for(&tags, true)(stored_only = true) skips allCameraSettingsfields (stored: false), adding zero extra tag lookups during library scans.extract_detail_valuesmaps theCameraSettingskeys from the already-extracted&[Tag]slice in memory (microseconds, no extra file I/O) and caches them indetail_cache;read_detailsretains only the requested section.Tests & Verification
cargo test --bin Lap metadata::embedded): 27 passed; 0 failed (including 4 new tests incamera_settings_testscovering(family0, family1)group matching, standard EXIF isolation, missing/partial combined fields, and scan/section isolation).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).vite build): Built cleanly with all 17 locale files updated.