Bug 513517 - Microsoft-Photos regions are wrongly (or not) rotated with orientation.
Summary: Microsoft-Photos regions are wrongly (or not) rotated with orientation.
Status: RESOLVED DUPLICATE of bug 474357
Alias: None
Product: digikam
Classification: Applications
Component: Faces-Workflow (other bugs)
Version First Reported In: 8.8.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-18 00:04 UTC by kde
Modified: 2025-12-18 15:20 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kde 2025-12-18 00:04:33 UTC
SUMMARY
I know this problem as been mentionned in the pas and I know there are no meta data indicating the orientation of the face tag BUT, WLPG being the truth on Microsoft Face Regions since it was created for it, I think it is still relevant.

Images that have orientation other than "normal" set and that were "people tagged" with Windows Live Photo Gallery (the truth owner for Microsoft Photo regions), end up with the regions in the wrong location and wrongly rendered in DigiKam and the regions created from them in the MWG regions sections are therefore corrupted.

STEPS TO REPRODUCE
1.  Take a picture with orientation value set to anything but standard and tagged by Microsoft Windows Live Photo Galery
2. Index it and open it in DigiKam
3. Look at the regions in the UI and the EXIF to see they are wrong
4. Add a new region (or probably any modification that would write to the metadata) using DigiKam
5. Notice the values in the MWG section

OBSERVED RESULT
The regions from WLPG are in the wrong place and when calculating from the original coordinates, clearly they are simply not rotated correctly.

EXPECTED RESULT
The WLPG rectangle corrdinates should follow the Orientation rotation. Maybe offer an option to rotate regions when right clicking a region as a manual fix to already corrupted images?

SOFTWARE/OS VERSIONS
digiKam: 8.8.0
KDE Frameworks: 6.17.0
Qt: Using 6.9.1 and built against 6.9.1
Windows 11 Version 25H2
Build ABI: x86_64-little_endian-llp64
Kernel: winnt 10.0.26200

ADDITIONAL INFORMATION
Comment 1 kde 2025-12-18 00:05:54 UTC
WLPG version used is 2012 (16.4.3528.331) which is, to my knowledge, the latest version.
Comment 2 kde 2025-12-18 00:08:49 UTC
Unfortunately, the file is a little too big to attach here and I don't want to modify it in any way. What is the best place to link it?
Comment 3 caulier.gilles 2025-12-18 02:29:31 UTC
Please use a cloud storage service to share files
Comment 4 caulier.gilles 2025-12-18 02:36:46 UTC
See also bug 286529
Comment 5 Maik Qualmann 2025-12-18 06:32:27 UTC

*** This bug has been marked as a duplicate of bug 474357 ***
Comment 6 Maik Qualmann 2025-12-18 06:35:16 UTC
I think the best option is for us to read and write WLPG using the Microsoft standard in the correct orientation.

A bug report regarding rotating faces already exists.

Maik