Currently support exists for handling .xmp sidecar files. This change expands that support to any arbitrary sidecar file. It also expands the set of sidecars which are handled by default. The new default set, and the reason this set was chosen, is:
.xmp - general metadata format for all image types; written by Lightroom, Digikam, Darktable, etc
.json - generated by google takeout when exporting from g photos
.yml/.yaml - used by Photoprism
Users can override this default set by passing the new --sidecars option. For example, to handle .xyz, users should pass --sidecars="xmp,json,yml,xyz"; and to disable sidecar handling altogether, pass --sidecars=''
As with my other patch, I'm submitting this without tests so we can reach consensus about the feature.
Example
Before the change, .json sidecars are placed in unknown rather than being moved with their images:
Currently support exists for handling
.xmp
sidecar files. This change expands that support to any arbitrary sidecar file. It also expands the set of sidecars which are handled by default. The new default set, and the reason this set was chosen, is:.xmp
- general metadata format for all image types; written by Lightroom, Digikam, Darktable, etc.json
- generated by google takeout when exporting from g photos.yml/.yaml
- used by PhotoprismUsers can override this default set by passing the new --sidecars option. For example, to handle
.xyz
, users should pass--sidecars="xmp,json,yml,xyz"
; and to disable sidecar handling altogether, pass--sidecars=''
As with my other patch, I'm submitting this without tests so we can reach consensus about the feature.
Example
Before the change,
.json
sidecars are placed inunknown
rather than being moved with their images:After, they're handled correctly: