Hello. I noticed an odd behavior in darktable (versions 4.2.1 and 5.0.1) and wondered if someone could help me understand it.
If I import two different photos named test.jpg and test_1.jpg, they import as two separate photos, as expected.
However, if those photos have pre-existing xmp sidecar files (test.jpg, test.jpg.xmp, test_1.jpg, test_1.jpg.xmp), then test.jpg shows up in darktable twice as a grouped image, and darktable makes a new xmp file test_01.jpg.xmp. So then there are three photos shown in darktable, when there are still only two photos on disk.
This behavior is confusing and hinders my workflow.
Can someone help me understand why darktable is doing this, and how to avoid it?
You can see the behavior yourself by doing the following:
Copy two JPG files to a new folder.
Rename them to test.jpg and test_1.jpg
Import the new folder (add to library)
Remove the two pictures from the darktable library
Import the new folder (add to library) again, and now the problem occurs.
I tested with test.jpg and test_2.jpg and the same problem occurs; now darktable creates test_02.jpg.xmp
Suggestions for a different file naming scheme are welcome as well. I am currently using: YYYYMMDD_HHMMSS.jpg, and YYYYMMDD_HHMMSS_X.jpg for additional photos on the same second (where X is a counter starting at 1). These photos do not have milliseconds nor sequence numbers in the EXIF metadata.
Thank you for your time!