Bug 426480

Summary: Remove unused lenses from database
Product: [Applications] digikam Reporter: harald.aust
Component: Database-ScanAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: wishlist CC: metzpinguin
Priority: NOR    
Version: 7.1.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 7.2.0

Description harald.aust 2020-09-13 14:18:33 UTC
SUMMARY

Don't know if this is a bug report, an enhancement request, or if there is a way to do this that I haven't found.

Situation:

After importing my images to digiKam, I used exiftool outside of digiKam to edit the lens tags of some of the images. digiKam noted this and updated the information correctly. So far, great.

However, the old, and now unused, lens names remain in the database, and show up, for example, when doing an Advanced Search and selecting a lens from the list. Effectively, my lens list is now full of lens names that I don't use anymore, and will never use again (I use lenses that don't communicate with the camera, so I'm free to choose whatever lens name I like).

Would be great if there were a way to get rid of them, e.g. as you can get rid of unused tags.

I tried Maintenance / Perform database cleaning (without checking any additional option), but that did not do it.


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: Win 10 pro 1809 64 bit
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2020-09-13 14:59:50 UTC
DigiKam does not delete any information from the database by default if you remove it externally. DigiKam would update a new lens. You have to temporarily activate the option to clean up the database in the digiKam metadata settings and re-read the metadata of the images in question.

Maik