Bug 405636

Summary: When importing picture not all people tags are present
Product: [Applications] digikam Reporter: gengler roby <gengler>
Component: Metadata-EngineAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: metzpinguin
Priority: NOR    
Version: 6.0.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 6.1.0
Attachments: xmpmeta zone of a jpg picture with empti "rectangel tags"
Foto (21).jpg

Description gengler roby 2019-03-19 11:32:59 UTC
Created attachment 118910 [details]
xmpmeta zone of a jpg picture with empti "rectangel tags"

SUMMARY
I have a lot of pictures where people tags were created by Microsoft "Live Photo Gallery".
When importing these Pictures to Digikam, a lot of people are missing.
Reason:
The xmpmeta -Zone in the Picture file has defined a "<MPReg:Rectangle>"-tag for all the Faces detected but only attributes an "MPReg:PersonDisplayName>"-tag when a Name was entered. So some "<MPReg:Rectangle>"-tags are present without the "MPReg:PersonDisplayName>"-tag. Importing to Digikam seems to stop when Digikam first encounters this Rectangle-tag without People-tag.
"<MPReg:Rectangle>"-tag with an "MPReg:PersonDisplayName>"-tag following this part are not imported.

This was proved by entering in Live Photo Gallery a dummy name for all the faces detected. In this case Digikam imported all the names, including the dummy names.


STEPS TO REPRODUCE
1. see above
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT
import all the people tags from the picture

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

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2019-03-19 12:28:10 UTC
Can you upload a test image, if not public then to my e-mail address. Unfortunately, the PDF file, which is very strange, can not do anything.

Maik
Comment 2 gengler roby 2019-03-19 12:50:40 UTC
Created attachment 118913 [details]
Foto (21).jpg

Hi Maik.
o
I tried to send the picture where the pdf came from [bild_6.jpg] but it is very big (61MB) and does not pass.
I enclosed another smaller one [Foto (21).jpg]

Regards

GENGLER Roby
9, rue des cerisiers
L - 5514 REMICH

tel: +352 23 69 88 36
mobile: +352 621 499 014
e-mail: gengler@pt.lu


-----Original Message-----
From: Maik Qualmann [mailto:bugzilla_noreply@kde.org] 
Sent: 19. Mäerz 2019 13:28
To: gengler@pt.lu
Subject: [digikam] [Bug 405636] When importing picture not all people tags are present

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

Maik Qualmann <metzpinguin@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |metzpinguin@gmail.com

--- Comment #1 from Maik Qualmann <metzpinguin@gmail.com> --- Can you upload a test image, if not public then to my e-mail address.
Unfortunately, the PDF file, which is very strange, can not do anything.

Maik

--
You are receiving this mail because:
You reported the bug.=
Comment 3 Maik Qualmann 2019-03-19 20:52:44 UTC
Git commit 759308274ca3dc928d6c99fae53181689de56065 by Maik Qualmann.
Committed on 19/03/2019 at 20:51.
Pushed by mqualmann into branch 'master'.

fix scanning WLPG faces from the image if name is empty
Related: bug 379916
FIXED-IN: 6.1.0

M  +3    -1    NEWS
M  +17   -8    core/libs/database/item/scanner/itemscanner_photo.cpp
M  +4    -3    core/libs/metadataengine/dmetadata/dmetadata_faces.cpp

https://commits.kde.org/digikam/759308274ca3dc928d6c99fae53181689de56065