Bug 439404 - Writing of face tags should not depend on the tags settings
Summary: Writing of face tags should not depend on the tags settings
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Hub (show other bugs)
Version: 7.2.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-02 12:33 UTC by José Oliver-Didier
Modified: 2021-07-03 11:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.3.0
Sentry Crash Report:


Attachments
Face tags under Image Tags (66.61 KB, image/png)
2021-07-02 16:11 UTC, José Oliver-Didier
Details

Note You need to log in before you can comment on or make changes to this bug.
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