https://bugs.kde.org/show_bug.cgi?id=523585
Bug ID: 523585
Summary: “Detect faces in newly added images” not triggered by
album monitoring / folder watch
Classification: Applications
Product: digikam
Version First 9.1.0
Reported In:
Platform: Ubuntu
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: Faces-Detection
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Expected behavior: Per the documentation, "Detect faces in newly added images"
should automatically trigger face detection for every newly added file —
including files added via album monitoring / external filesystem changes (e.g.
copied in via Samba).
Actual behavior: The trigger is only wired up in two places:
DigikamApp::initGui() (on startup) and the manual "Scan for New Items" action,
both via slotDetectFaces(), which operates on ScanController::getNewIdsList().
Album monitoring (AlbumWatch::rescanDirectory ->
ScanController::scheduleCollectionScanExternal) runs through a completely
separate code path with no connection to slotDetectFaces() at all -- so files
added while digiKam is running via folder monitoring never get face-detected
automatically.
Additionally, even the startup trigger fails if the file was already registered
in the database by a prior album-watch scan: getNewIdsList() only returns items
that are new in that specific scan run, not "never face-scanned" -- so a
restart doesn't help once the file is already known to the DB.
Steps to reproduce:
1. Enable "Detect faces in newly added images" and album monitoring, restart
digiKam
2. Copy a new photo containing a face into a monitored collection folder (not
via the Import tool)
3. Photo appears in the album with a thumbnail (confirmed via inotify -- album
monitoring itself works correctly), but no automatic face detection occurs
4. Restarting digiKam does not trigger detection either, since the file is
already registered in the database
5. Manually clicking "Scan Collection for Faces" in the People sidebar
correctly detects the face
Source references (checked against a recent GitHub mirror of the digiKam
source, not necessarily exact line numbers in 9.1.0):
- core/libs/album/engine/albumwatch.cpp
- core/app/main/digikamapp.cpp (~line 398)
- core/app/main/digikamapp_tools.cpp (~lines 132/159)
--
You are receiving this mail because:
You are watching all bug changes.