darktable-org / darktable-org/darktable

Darktable overrides xmp files from already edited pictures when importing

Open
#20,537 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

no-issue-activity
Dominant language
C
Stars
13.1k
Forks
1.4k
Avg merge
22h 14m
Merged PRs (30d)
198

Description

Is there an existing issue for this?
  • I checked and did not find my issue in the already reported ones
Describe the bug

I edited a picture a while ago (5 months) and wanted to import it again. When I did so, Darktable overrides the xmp file of the image while importing, so there is no more edit history. I was importing only this one image. I checked the option "check for new xmp files on start".
Another thing to add: When trying to load the correct (old) xmp file via "load xmp file" it also gets overwritten.

old_xmp_that_gets_overwritten.txt

Steps to reproduce
  1. Go to "import"
  2. Choose the image
  3. Import it
    -> Darktable overrides the xmp file (its blank, no edit history) as it would be a never edited picture
Expected behavior

Darktable should load the edit history of the already existing xmp file and not override it

Logfile | Screenshot | Screencast

No response

Commit

No response

Where did you obtain darktable from?

darktable.org / GitHub release

darktable version

5.4.1

What OS are you using?

Windows

What is the version of your OS?

Windows 10

Describe your system

No response

Are you using OpenCL GPU in darktable?

I dont know

If yes, what is the GPU card and driver?

No response

Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Windows 10 case through the Import workflow with the existing XMP file, then repeat it using “load xmp file.” Compare the attached old XMP with the file after each operation; done means importing or loading an already edited picture preserves its edit history instead of overwriting the XMP.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.