Digikam writes incomplete XMP file

I have a large collection of images which I want to tag using a tag hierarchy.

The tags are read later using a python program.
When I edit tags, some fxmp iles will be written correctly.
An unclear selection and number of images, however, will have almost empty xmp-files containing only one line:

<?xpacket begin="" id="shome id string"?>

I can ‘force’ the the correct output when I change a tag in those files and then explicitly write metadata to files.

Does anyone have an idea

  • when this happens
  • how to get around it

Best regards

Hi @Dietrich_Paulus,
You can “force” digiKam to rewrite the .xmp file without having to update the metadata. Go to Tools->Maintenance->Sync Metadata and Database, and then write from the digiKam DB to the image metadata.

Cheers,
Mike