Bug 389042

Summary: Auto-rotation/flip Images delete face tags
Product: [Applications] digikam Reporter: nonobio
Component: Faces-EngineAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: critical CC: caulier.gilles, nonobio
Priority: NOR    
Version First Reported In: 5.8.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 5.9.0
Sentry Crash Report:
Attachments: Metadata differences on the same photo, before (left) and after (right) applying autorotation

Description nonobio 2018-01-16 10:03:38 UTC
Created attachment 109903 [details]
Metadata differences on the same photo, before (left) and after (right) applying autorotation

Hi,

When i use "auto-rotation/flip Images" tool, all my faces tag are deleted, even if the image doesn't need rotation.

I applied this task to all my photos and all my face was deleted. Hopefully i had a backup ;)

You can reproduce the bug by using the task "auto rotate" on any photo with face tag : face tag is instantly deleted.

Thanks
Comment 1 Maik Qualmann 2018-01-16 18:39:08 UTC
Git commit f3d94949ccb904219ba7859d1bda11a011564d1d by Maik Qualmann.
Committed on 16/01/2018 at 18:37.
Pushed by mqualmann into branch 'master'.

fix and add support for flip image face tags (flip function backported from 6.0.0)
FIXED-IN: 5.9.0

M  +2    -1    NEWS
M  +25   -0    libs/database/tags/tagregion.cpp
M  +5    -0    libs/database/tags/tagregion.h
M  +25   -10   libs/fileactionmanager/fileworkeriface.cpp

https://commits.kde.org/digikam/f3d94949ccb904219ba7859d1bda11a011564d1d
Comment 2 nonobio 2018-02-21 16:28:13 UTC
Thanks a lot :)