Darktable
Non-destructive XMP sidecar rating and metadata synchronization for Darktable on Windows, macOS, and Linux.
Open-Source RAW Workflow with Darktable
Darktable is a powerful, open-source photography workflow application and non-destructive RAW developer used by photographers worldwide across Windows, macOS, and Linux.
BestShots.AI integrates directly with Darktable through industry-standard Extensible Metadata Platform (XMP) sidecars, preserving your AI star ratings, keeper selections, and culling metadata with zero alteration to your original camera RAW sensor files.
Metadata Mapping Specification
When you export an XMP Sidecar & Workflow Bundle (.zip) from BestShots, all curation decisions are encoded into universal Adobe-compliant namespaces that Darktable ingests seamlessly:
| BestShots Decision | Darktable Star Rating | Darktable Color Label | XMP Tag |
|---|---|---|---|
| Keep (Hero / 5★) | 5 Stars (★★★★★) | Yellow / Green | xmp:Rating = 5 |
| Keep (Standard / 4★) | 4 Stars (★★★★☆) | Green | xmp:Rating = 4 |
| Unreviewed / Neutral | 0 Stars (Unrated) | None | xmp:Rating = 0 |
| Reject / Discard | -1 (Rejected) | Red | xmp:Rating = -1 |
Dublin Core keywords (dc:subject) such as ai-keep, sharp-focus, and detected face person tags are automatically imported into Darktable's tagging module.
Step-by-Step Darktable Sync Workflow
Follow this procedure to sync BestShots curation decisions into your Darktable collection:
Step 1: Export Workflow Bundle from BestShots
- In your project workspace, click Export in the top navigation bar (or press E).
- Choose XMP Sidecar & Workflow Bundle (.zip).
- Keep the default naming template Keep Original Camera Filenames (
{originalName}) so each sidecar filename matches its RAW master file stem (e.g._DSC4091.CR3paired with_DSC4091.xmp). - Click Start Export and extract the downloaded ZIP archive.
Step 2: Copy Sidecars into your RAW Directory
Copy all exported .xmp companion files into the folder on your hard drive where your camera RAW files reside. Ensure each .xmp file sits immediately next to its corresponding RAW file.
Step 3: Import into Darktable via "Add to Library"
- Launch Darktable and navigate to the Lighttable view.
- In the left panel, locate the Import module.
- Click Add to Library (or choose folder). Navigate to your shoot directory and click Open.
Use "Add to Library", not "Copy & Import"
"Add to Library" registers your existing local files in place and reads companion .xmp sidecar files automatically. "Copy & Import" copies files to a new structure and generates clean default sidecars, which ignores pre-existing curation data.
- Darktable indexes your collection: all AI 5-star ratings, color tags, and keyword tags appear instantly across your grid.
Syncing Sidecars for Already-Imported Images
If you had already imported your RAW files into Darktable before running BestShots curation, use either of these methods to refresh your catalog:
Method A: Startup XMP Change Detection (Recommended)
- In Darktable, click the gear icon (top right) to open Preferences.
- Go to Storage > XMP sidecar files.
- Enable the setting: look for updated xmp files on startup.
- Restart Darktable. On startup, Darktable detects that the sidecar files have newer timestamps than its database entries, prompting you to reload the metadata from disk.
Method B: Manual EXIF/Metadata Refresh
- In the Lighttable view, select all photos in the collection (Ctrl + A on Windows/Linux, Cmd + A on macOS).
- In the right-hand panel, expand the Selected Images module.
- Click Refresh EXIF. Darktable re-reads the sidecar metadata from disk and refreshes your ratings.
1-Click Desktop Organizer with Darktable
If you want to isolate your approved keeper RAW files before opening Darktable, use the included desktop organizer scripts:
- Extract the exported ZIP bundle directly into your local camera RAW folder.
- Run the organizer script:
- On Windows: Double-click
organize_keepers.bat. - On macOS: Double-click
organize_keepers.command.
- On Windows: Double-click
- The script copies all approved keeper RAW files and sidecars into a
BestShots_Keepers/subfolder in under one second. - In Darktable, simply click Import > Add to Library and select
BestShots_Keepers/to work exclusively with your curated cull selections.