Bug 415550

Summary: Faces setup by Picasa are not displayed correctly on rotated/portrait pictures
Product: [Applications] digikam Reporter: Alexandre Belz <alexandre.belz>
Component: Faces-WorkflowAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin, shiregators-2003
Priority: NOR    
Version: 7.0.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 7.0.0
Sentry Crash Report:
Attachments: Example
Screen capture of the bug.

Description Alexandre Belz 2019-12-25 12:05:50 UTC
Created attachment 124702 [details]
Example

STEPS TO REPRODUCE
1. Open the attached picture in Picasa. Face is correctly aligned
2. Open the attached picture in digikam. Face is badly aligned


EXPECTED RESULT
Faces tagged by Picasa should be displayed to same by digikam.

SOFTWARE/OS VERSIONS
Windows: 10
Comment 1 Alexandre Belz 2019-12-25 12:07:10 UTC
Created attachment 124703 [details]
Screen capture of the bug.
Comment 2 Maik Qualmann 2019-12-25 12:16:08 UTC

*** This bug has been marked as a duplicate of bug 372340 ***
Comment 3 Maik Qualmann 2019-12-25 12:22:32 UTC
The problem is known and was already been solved. But we still have to find a way to prevent long-standing digiKam users from falling into chaos. So old facial rectangles have to be converted (database and image metadata).

Maik
Comment 4 Alexandre Belz 2019-12-25 14:11:06 UTC
Hi Maik,

thank you for your feedback.
Why do you say "old" ?
i did my test with a new public picture and latest version of both softwares.

Alex
Comment 5 Alexandre Belz 2019-12-25 14:19:51 UTC
... and Merry Christmas to you amd your beloved.
Comment 6 Maik Qualmann 2019-12-25 14:28:06 UTC
DigiKam stores and expects the facial rectangles aligned according to the Exif Orientation tag. However, the standard provides that the face rectangles are saved for the non-aligned image. Since digiKam has been doing this wrong from the beginning, it affects users who have been editing their images with digiKam for many years.

Maik
Comment 7 caulier.gilles 2020-01-19 08:51:58 UTC
Git commit 32bb16fee6b2676b30bf843bf3e083a23084cd3d by Maik Qualmann.
Committed on 19/01/2020 at 08:37.
Pushed by mqualmann into branch 'master'.

read and write not aligned face metadata from image
FIXED-IN: 7.0.0

M  +2    -1    NEWS
M  +7    -4    core/libs/database/item/scanner/itemscanner_photo.cpp
M  +3    -29   core/libs/fileactionmanager/metadatahub.cpp
M  +0    -6    core/libs/fileactionmanager/metadatahub.h
M  +6    -5    core/utilities/imageeditor/main/imagewindow.cpp

https://invent.kde.org/kde/digikam/commit/32bb16fee6b2676b30bf843bf3e083a23084cd3d
Comment 8 Alexandre Belz 2020-01-26 14:19:34 UTC
Correction confirmed.
Picasa signaled Faces are now correctly analyzed by digikam 7.0 beta2.
Comment 9 Maik Qualmann 2020-04-21 21:21:28 UTC
*** Bug 420401 has been marked as a duplicate of this bug. ***