Bug 439404

Summary: Writing of face tags should not depend on the tags settings
Product: [Applications] digikam Reporter: José Oliver-Didier <jose_oliver>
Component: Metadata-HubAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: metzpinguin
Priority: NOR    
Version: 7.2.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 7.3.0
Sentry Crash Report:
Attachments: Face tags under Image Tags

Description José Oliver-Didier 2021-07-02 12:33:50 UTC
SUMMARY
With lazy synchronization disabled and write Face Tags to file metadata options enabled in Digikam's Configuration dialog- metadata is not being written back to file.  

STEPS TO REPRODUCE
1. From Digikam's Configuration dialog - Ensure "Lazy Synchronization" is disabled and "Face Tags" are enabled in the Metadata write options.
2. Select an image file and add "Face Tag" regions and a person's name.


OBSERVED RESULT
- Face Tags are not immediately written back to the file.

EXPECTED RESULT
- Face Tags should be written back to file.


SOFTWARE/OS VERSIONS
Windows: 10

ADDITIONAL INFORMATION
- Face Tags are written back to file when selecting the image file and clicking on "Writing metadata to file" in the Items menu. Seems that this option forces the write operation.
- If you select "Rating" as another metadata write option, these values are written back to file metadata when the rating value is added, but Face Tags are not.
- My setup is: Windows 10, Maria DB running on a remote server.
- Ref mailing list email: July 1 2021 - Subject "When is metadata written back to files?"
Comment 1 Maik Qualmann 2021-07-02 13:29:05 UTC
I already wrote to you that face tags are immediately written into the pictures. A test here under Windows shows no problems. To determine the problem for you, we need the DebugView Log, as described here for Windows:

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

Don't forget to set the debug environment variable.

Maik
Comment 2 Maik Qualmann 2021-07-02 13:56:25 UTC
You must have tags activated (top metadata entry) so that the face data is written immediately.

Maik
Comment 3 José Oliver-Didier 2021-07-02 16:11:50 UTC
Created attachment 139807 [details]
Face tags under Image Tags

After adding the "Image Tags" option it worked. 

If writing Face Tags is dependent on "Image Tags", then the user should not be allowed to check/enable Face Tags without enabling Image Tags first. The dialog does not seem to be intuitive. I suggest placing the Face Tags checkbox under Image Tags (refer to attached screenshot).
Comment 4 Maik Qualmann 2021-07-03 11:21:24 UTC
Git commit fc35e02ea4f3fe9787be22da7755519dce61fe4d by Maik Qualmann.
Committed on 03/07/2021 at 11:20.
Pushed by mqualmann into branch 'master'.

fix writing face tags when tags are not activated
FIXED-IN: 7.3.0

M  +2    -2    NEWS
M  +1    -3    core/libs/properties/captions/disjointmetadata.cpp

https://invent.kde.org/graphics/digikam/commit/fc35e02ea4f3fe9787be22da7755519dce61fe4d