Skip to content

Dropping photos with XMP sidecars no longer imports the sidecars as presets (#936) - #943

Merged
bflatastic merged 1 commit into
storytold:mainfrom
MarekSpodBiedry:issue-936
Oct 11, 2026
Merged

bflatastic merged 1 commit into
storytold:mainfrom
MarekSpodBiedry:issue-936

Conversation

@MarekSpodBiedry

Copy link
Copy Markdown
Contributor

Fixes #936.

Dropping files on the window sent every .xmp to file.importPresets, so photos dropped together with their sidecars (for example from Photo Mechanic) each added a preset.

The drop handler now uses split_presets. An .xmp that sits in the same folder as a dropped photo of the same name (IMG_1.xmp or IMG_1.CR2.xmp next to IMG_1.CR2, case-insensitive) is treated as that photo's sidecar. It is not imported as a preset, and the photo import still reads it as before. An .xmp dropped without a matching photo (a real XMP preset) is imported as a preset, as before. Other preset formats are unchanged.

  • crates/ui-egui/src/lib.rs: split_presets replaces the partition(is_preset_file) in the window drop handler. This is the only place where dropped files go to the preset importer. The browser build sends dropped files only to library.import.
  • docs/parity-checklist.md (LR-IMP-PROFILES): notes that drag & drop leaves sidecars out.
  • Test photo_sidecars_are_not_presets: stem and full-name sidecars, an upper-case .XMP, a preset beside the photos, and a same-named .xmp in another folder (still a preset).

@MarekSpodBiedry
MarekSpodBiedry marked this pull request as ready for review October 11, 2026 09:46
@bflatastic
bflatastic merged commit 805a15a into storytold:main Oct 11, 2026

Copy link
Copy Markdown
Member

Landed in #975 (fixes #936). Thank you, @MarekSpodBiedry! #728, #666 and #665 are in the next batches. If you haven't already, come and join us on Discord: https://discord.gg/artcraft


Generated by Claude Code

clydecbrown pushed a commit to clydecbrown/lightcraft that referenced this pull request Nov 9, 2026
…6-11-09

Upstream intake round 3 (2026-11-09): 11 adopted
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.

When importing photos that have XMP data, the XMP data gets added as a preset

2 participants