darktable icon indicating copy to clipboard operation
darktable copied to clipboard

Import of images edited in Corel Aftershot Pro 3 overwrites xmp sidecar files

Open jzinkweg opened this issue 3 years ago • 8 comments

Describe the bug/issue When trying out darktable as a potential replacement for Corel Aftershot Pro 3 on Linux, the sidecar xmp files generated by Aftershort were overwritten during import in darktable. Aftershot uses the same naming format as darktable: <basename>.<extension>.xmp.

To Reproduce

  1. Use Corel Aftershot Pro 3 to edit / organize a photo
  2. Open .xmp file and see Aftershot's metadata is present
  3. Import photo in darktable
  4. Open .xmp file and see Aftershot's metadata is missing

Expected behavior Possible solutions could be to:

  • warn the user sidecar metadata will be lost as it is not recognized
  • merge the unsupported metadata with the darktable metadata during write
    (this is done by Aftershot when re-writing metadata to an xmp file containing darktable elements)
  • create a new nn version when importing incompatible xmp files and leave the original intact

Platform

  • darktable version : 4.0.0-1.1 from graphics:/darktable/xUbuntu_22.04
  • OS : Linux 5.15.0-43-generic
  • Linux - Distro : Ubuntu 22.04.1 LTS
  • Desktop : Gnome 42.2

Additional context

  • Can you reproduce with a RAW or Jpeg or both? both
  • Is the issue still present using an empty/new config-dir (e.g. start darktable with --configdir "/tmp")? clean install of darktable

jzinkweg avatar Aug 14 '22 18:08 jzinkweg

there is an option to turn off or not generate xmp files on import. guess you missed that.

ptilopteri avatar Aug 14 '22 18:08 ptilopteri

I found that option after losing 3000+ xmp files (single directory import) which I'm now restoring from backup.

It still means I can't make edits to files as that will still lose my previous metadata which is stored in different xml namespaces.

jzinkweg avatar Aug 14 '22 19:08 jzinkweg

correct, the xmp files are not generated the same between darktable and bibble/corel

you can export tiff files from either and import into the other

ptilopteri avatar Aug 14 '22 21:08 ptilopteri

probably ought to alter the filenames on export, just in case :)

ptilopteri avatar Aug 14 '22 21:08 ptilopteri

I don't think this issue is about exporting/importing between different programs. But about darktable (silently) overwriting xmp files created by other programs and thus losing work in the process.

Although I don't have a fully thought out solution for this, I do think the default behavior of darktable should be "safe" in this situation.

saknopper avatar Aug 15 '22 09:08 saknopper

The "correct" behavior would be to preserve any tags in non-dt namespaces. That would require storing them in the database somehow on import (both initial when reloading the xmp) and writing them out along with dt's tags.

ralfbrown avatar Aug 15 '22 13:08 ralfbrown

@jzinkweg When you add the images to darktable, are you using Add to Library or Copy & Import? Is the xmp behavior different in Add to Library?

gi-man avatar Aug 15 '22 18:08 gi-man

This issue did not get any activity in the past 60 days and will be closed in 365 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.

github-actions[bot] avatar Oct 15 '22 00:10 github-actions[bot]

This issue was closed because it has been inactive for 300 days since being marked as stale. Please check if the newest release or nightly build has it fixed. Please, create a new issue if the issue is not fixed.

github-actions[bot] avatar Aug 12 '23 00:08 github-actions[bot]