Bug 405636 - When importing picture not all people tags are present
Summary: When importing picture not all people tags are present
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Engine (show other bugs)
Version: 6.0.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-19 11:32 UTC by gengler roby
Modified: 2019-03-19 20:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 6.1.0


Attachments
xmpmeta zone of a jpg picture with empti "rectangel tags" (80.95 KB, application/pdf)
2019-03-19 11:32 UTC, gengler roby
Details
Foto (21).jpg (991.88 KB, image/jpeg)
2019-03-19 12:50 UTC, gengler roby
Details

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