Bug 426480 - Remove unused lenses from database
Summary: Remove unused lenses from database
Status: RESOLVED WORKSFORME
Alias: None
Product: digikam
Classification: Applications
Component: Database-Scan (show other bugs)
Version: 7.1.0
Platform: Microsoft Windows Microsoft Windows
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-13 14:18 UTC by harald.aust
Modified: 2020-11-07 21:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.2.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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