Bug 425330

Summary: Faces Thumbnail for RAW(NEF) Files references JPEG Preview location not Raw File Location
Product: [Applications] digikam Reporter: da.great.zombi
Component: Faces-DetectionAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, da.great.zombi, metzpinguin
Priority: NOR    
Version First Reported In: 7.0.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 8.1.0
Sentry Crash Report:

Description da.great.zombi 2020-08-14 03:00:07 UTC
SUMMARY: 
Faces Thumbnail for RAW(NEF) Files references JPEG Preview location not Raw File Location


STEPS TO REPRODUCE
1. Load a NEF file
2. Face-Detect/Tag Face in Preview
3. View Thumbnail pane for tagged face

OBSERVED RESULT
Face-Tag Thumbnail is generated for Face-tag at box based on(image preview, I think) but utilizing RAW(NEF) Source. 

EXPECTED RESULT
Face-Tag Thumbnail is generated for Face-tag at box interpolated to RAW(NEF)Source. 

or 

Face-Tag Thumbnail is generated for Face-tag at box based on JPEG Preview. 

SOFTWARE/OS VERSIONS
Windows: 10
DigiKAM 7.0.0-RC

ADDITIONAL INFORMATION
Nikon NEF Files explicitly confirmed
Comment 1 Maik Qualmann 2020-08-14 06:00:48 UTC
Yes, the facial thumbnail can come from the preview of the RAW image, if available. Where is the problem? For reasons of speed alone, the thumbnails are not created from the RAW image if possible. This is really intended.

Maik
Comment 2 da.great.zombi 2020-08-17 14:05:22 UTC
ISSUE: Face thumbnail generated at different X/Y co'ords than where shown on Image Preview Face-Tag. No effective method to mass regenerate specifically Face-Tag Thumbnails exacerbates this issue. 

(maintenance->regenerate thumbnails did not correct these improperly generated thumbnails)

The only method to resolve these improperly thumb-nailed face tags has been to edit each tag individually and "wiggle" the tag-box, after which it will regenerate the thumbnail properly, but that's (2-8 seconds per tag X tags per photo x 100K badly tagged pics) tens/hundreds hours of unnecessary work. 

There doesn't appear to be a way to rebuild face thumbnail images en masse, as choosing "rebuild thumbnails" in the maintenance menu doesn't regenerate/fix the face-thumbnails suffering this issue as of the most current 7.0.0 release.
Comment 3 caulier.gilles 2023-05-04 02:49:49 UTC
@da.great.zombi@gmail.com

digiKam 8.0.0 is out. This entry still valid with this release ?

Best regards

Gilles Caulier
Comment 4 Maik Qualmann 2023-05-04 11:33:40 UTC
This problem is now fixed, we scan the RAW (half RAW image) for faces and use the RAW as thumbnail source.

Maik