<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>490821</bug_id>
          
          <creation_ts>2024-07-25 16:18:48 +0000</creation_ts>
          <short_desc>digiKam fails to write tags/ratings to image files</short_desc>
          <delta_ts>2025-12-25 10:53:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>digikam</product>
          <component>Maintenance-Metadata</component>
          <version>8.4.0</version>
          <rep_platform>Microsoft Windows</rep_platform>
          <op_sys>Microsoft Windows</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>eberhard.morgenroth</reporter>
          <assigned_to name="Digikam Developers">digikam-bugs-null</assigned_to>
          <cc>metzpinguin</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin>9.0.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2340109</commentid>
    <comment_count>0</comment_count>
    <who name="">eberhard.morgenroth</who>
    <bug_when>2024-07-25 16:18:48 +0000</bug_when>
    <thetext>***
If you&apos;re not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you&apos;re reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY I use digiKam to assign tags and ratings to images. I ask digiKam to sync from database to metadata (in Maintenance) . Some of the tags/ratings are assigned to images. But it does not work for most of the images.

In the setup I have exiftool.exe Version 12.89 installed.


STEPS TO REPRODUCE
1. Run Maintenance with sync from database to metadata 
2. Check image files for tags and ratings &gt; They are not written to the files
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 11
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2340143</commentid>
    <comment_count>1</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2024-07-25 17:50:35 +0000</bug_when>
    <thetext>We need a DebugView log of the metadata writing process, instructions for Windows are here:

https://www.digikam.org/contribute/

Does the problem occur randomly or is it reproducible with certain images? If reproducible, we need a sample image.

Please also test the pre-release of digiKam-8.5.0 to see if the problem also occurs, from here:

https://files.kde.org/digikam/

Maik</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2340742</commentid>
    <comment_count>2</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2024-07-28 09:00:37 +0000</bug_when>
    <thetext>Git commit 341ffaa20f5d37775169d2b86f729c0014bb2fc7 by Maik Qualmann.
Committed on 28/07/2024 at 08:57.
Pushed by mqualmann into branch &apos;master&apos;.

do not rescan item after writing metadata
Related: bug 490484

M  +2    -2    core/libs/database/engine/dbenginebackend.cpp
M  +3    -14   core/libs/database/utils/ifaces/itemgps.cpp
M  +3    -20   core/libs/fileactionmanager/fileworkeriface.cpp
M  +1    -2    core/libs/properties/captions/itemdescedittab.cpp
M  +1    -2    core/libs/tags/engine/tagmodificationhelper.cpp
M  +1    -8    core/libs/threads/actionthreadbase.cpp
M  +3    -7    core/utilities/facemanagement/database/faceutils.cpp
M  +1    -2    core/utilities/imageeditor/main/imagewindow.cpp
M  +1    -3    core/utilities/maintenance/tools/autotags/autotagsassignmenttask.cpp
M  +1    -3    core/utilities/maintenance/tools/imgqsort/imagequalitytask.cpp
M  +1    -3    core/utilities/maintenance/tools/metaremover/metadataremovetask.cpp
M  +2    -5    core/utilities/maintenance/tools/metasync/metadatasynctask.cpp
M  +1    -3    core/utilities/queuemanager/manager/actionthread.cpp

https://invent.kde.org/graphics/digikam/-/commit/341ffaa20f5d37775169d2b86f729c0014bb2fc7</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2340745</commentid>
    <comment_count>3</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2024-07-28 09:04:33 +0000</bug_when>
    <thetext>Git commit 15101d696baf5491abb60be9013fadf3b5dd0b3c by Maik Qualmann.
Committed on 28/07/2024 at 09:03.
Pushed by mqualmann into branch &apos;master&apos;.

Revert &quot;do not rescan item after writing metadata&quot;
Related: bug 490484

M  +2    -2    core/libs/database/engine/dbenginebackend.cpp
M  +14   -3    core/libs/database/utils/ifaces/itemgps.cpp
M  +20   -3    core/libs/fileactionmanager/fileworkeriface.cpp
M  +2    -1    core/libs/properties/captions/itemdescedittab.cpp
M  +2    -1    core/libs/tags/engine/tagmodificationhelper.cpp
M  +8    -1    core/libs/threads/actionthreadbase.cpp
M  +7    -3    core/utilities/facemanagement/database/faceutils.cpp
M  +2    -1    core/utilities/imageeditor/main/imagewindow.cpp
M  +3    -1    core/utilities/maintenance/tools/autotags/autotagsassignmenttask.cpp
M  +3    -1    core/utilities/maintenance/tools/imgqsort/imagequalitytask.cpp
M  +3    -1    core/utilities/maintenance/tools/metaremover/metadataremovetask.cpp
M  +5    -2    core/utilities/maintenance/tools/metasync/metadatasynctask.cpp
M  +3    -1    core/utilities/queuemanager/manager/actionthread.cpp

https://invent.kde.org/graphics/digikam/-/commit/15101d696baf5491abb60be9013fadf3b5dd0b3c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2340831</commentid>
    <comment_count>4</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2024-07-28 19:06:48 +0000</bug_when>
    <thetext>Git commit a7ec93df612cdb1a921e40e52794e81364820510 by Maik Qualmann.
Committed on 28/07/2024 at 19:02.
Pushed by mqualmann into branch &apos;master&apos;.

fix prepare a copied query and handle bind values correctly
Under Qt5 the bind values were a QMap, in Qt6 it is a QVariantList.
If we add a QVariantList we get a list in the list. To change this
behavior we add the bind values one by one.
Related: bug 490484

M  +11   -11   core/libs/database/coredb/coredb.cpp
M  +40   -5    core/libs/database/engine/dbenginebackend.cpp
M  +8    -0    core/libs/database/engine/dbenginesqlquery.cpp
M  +1    -0    core/libs/database/engine/dbenginesqlquery.h
M  +1    -8    core/libs/threads/actionthreadbase.cpp

https://invent.kde.org/graphics/digikam/-/commit/a7ec93df612cdb1a921e40e52794e81364820510</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2341380</commentid>
    <comment_count>5</comment_count>
    <who name="">eberhard.morgenroth</who>
    <bug_when>2024-07-30 17:31:09 +0000</bug_when>
    <thetext>Thanks.

I turned off &quot;rescan item after writing metadata&quot;. This does not solve the problem.

Best,
Eberhard.


-----Original Message-----
From: Maik Qualmann &lt;bugzilla_noreply@kde.org&gt; 
Sent: Sunday, 28 July 2024 11:01
To: Morgenroth, Eberhard &lt;Eberhard.Morgenroth@eawag.ch&gt;
Subject: [digikam] [Bug 490821] digiKam fails to write tags/ratings to image files

This e-mail was sent to you by someone outside Eawag.
You should only click on links or attachments if you are certain that the e-mail is genuine and the content is safe.

https://bugs.kde.org/show_bug.cgi?id=490821

--- Comment #2 from Maik Qualmann &lt;metzpinguin@gmail.com&gt; --- Git commit 341ffaa20f5d37775169d2b86f729c0014bb2fc7 by Maik Qualmann.
Committed on 28/07/2024 at 08:57.
Pushed by mqualmann into branch &apos;master&apos;.

do not rescan item after writing metadata
Related: bug 490484

M  +2    -2    core/libs/database/engine/dbenginebackend.cpp
M  +3    -14   core/libs/database/utils/ifaces/itemgps.cpp
M  +3    -20   core/libs/fileactionmanager/fileworkeriface.cpp
M  +1    -2    core/libs/properties/captions/itemdescedittab.cpp
M  +1    -2    core/libs/tags/engine/tagmodificationhelper.cpp
M  +1    -8    core/libs/threads/actionthreadbase.cpp
M  +3    -7    core/utilities/facemanagement/database/faceutils.cpp
M  +1    -2    core/utilities/imageeditor/main/imagewindow.cpp
M  +1    -3
core/utilities/maintenance/tools/autotags/autotagsassignmenttask.cpp
M  +1    -3    core/utilities/maintenance/tools/imgqsort/imagequalitytask.cpp
M  +1    -3
core/utilities/maintenance/tools/metaremover/metadataremovetask.cpp
M  +2    -5    core/utilities/maintenance/tools/metasync/metadatasynctask.cpp
M  +1    -3    core/utilities/queuemanager/manager/actionthread.cpp

https://invent.kde.org/graphics/digikam/-/commit/341ffaa20f5d37775169d2b86f729c0014bb2fc7

--
You are receiving this mail because:
You reported the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2415112</commentid>
    <comment_count>6</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2025-04-11 18:13:54 +0000</bug_when>
    <thetext>Hi,

The 8.7.0 pre-release Windows installer from today have been rebuilt from
scratch with Qt 6.8.3, KDE 6.12, OpenCV 4.11 + CUDA support, Exiv2 0.28.5, ExifTool 13.27, ffmpeg 7, all image codecs updated to last version (jxl, avif, heif, aom, etc.).

Please try with this version to see if your problem still reproducible...

https://files.kde.org/digikam/

Thanks in advance
Best regards

Gilles Caulier</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>