Bug 269577

Summary: THUMBDB : When an image is deleted its thumbnail is not deleted from the db.
Product: [Applications] digikam Reporter: pochini
Component: Database-ThumbsAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: 1.8.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 7.5.0
Sentry Crash Report:

Description pochini 2011-03-27 23:36:13 UTC
Version:           1.8.0 (using KDE 4.5.0) 
OS:                Linux

After an image is deleted its thumbnail is still in the thumbnails-digikam.db

Reproducible: Always

Steps to Reproduce:
Select a pic.
Hit del key.
Confirm.
Do sqlite3 <path>/thumbnails-digikam.db
SELECT * FROM FilePaths WHERE path LIKE '%/name-of-the-deleted-picture';
You'll see that the thumbnail of the deleted picture is still there.
Comment 1 Marcel Wiesweg 2011-05-23 21:09:55 UTC
we'd need some sort of garbage collector for the thumbnails db. As there is no guaranteed 1:1 mapping thumbnails -> original, the thumb is not automatically deleted.
Comment 2 caulier.gilles 2011-12-15 08:53:40 UTC
Pochini,

This file still valid using digiKam 2.x serie ?

Gilles Caulier
Comment 3 caulier.gilles 2014-08-29 22:27:45 UTC

*** This bug has been marked as a duplicate of bug 317210 ***
Comment 4 caulier.gilles 2022-01-12 13:16:26 UTC
Fixed with https://bugs.kde.org/show_bug.cgi?id=317210