Bug 497743

Summary: Option to avoid saving thumbnails
Product: [Applications] digikam Reporter: mat <software.v9onn>
Component: Showfoto-DirectoryAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: metzpinguin
Priority: NOR    
Version First Reported In: 8.4.0   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 8.6.0
Sentry Crash Report:

Description mat 2024-12-21 09:37:24 UTC
Please add an option to not save thumbnails permanently, e.g. in .cache. Either do not show thumbnails at all or save them in RAM when a directory is opened.
Reasons:
Thumbnails take up a lot of memory.
Professional photographers and journalists need to protect their hard disk from being searched. They encrypt the images but forget the thumbnails.
Comment 1 Maik Qualmann 2024-12-21 10:09:56 UTC
digiKam does not save thumbnails in the .cache folder. File manager, Gwenview or Schowfoto save the thumbnails in this folder. For a photo management system like digiKam, a thumbnail cache located in a database is essential. If you use digiKam with a SQLite DB, you only need to delete the thumbnails-digikam.db file at the end of the session. This can be done in a script if you really want to do it for security reasons.

Maik
Comment 2 Maik Qualmann 2024-12-21 10:21:51 UTC
OK, I hadn't seen that the bug was related to Showfoto. Yes, we could consider this option for Showfoto. But as I said, other programs also save their thumbnails in the .cache folder.

Maik
Comment 3 mat 2024-12-21 11:00:03 UTC
Well, other programs like Gwenview have this option.
Depending on the file system, it is not so easy to delete the thumbnails securely (e.g. BtrFS).
A professional photographer takes hundreds of pictures only to end up using a few. The flood of thumbnails then spams the system, even if a directory is merely opened.
Comment 5 Maik Qualmann 2024-12-22 16:57:41 UTC
Note: the option will only take effect after restarting Showfoto.

Maik
Comment 6 Maik Qualmann 2024-12-22 17:31:46 UTC
Git commit 17c9ba2e86d4338e7cee33753d79ef34de5386f5 by Maik Qualmann.
Committed on 22/12/2024 at 16:36.
Pushed by mqualmann into branch 'master'.

add the option to not cache thumbnails in Showfoto
FIXED-IN: 8.6.0

M  +1    -1    NEWS
M  +17   -2    core/libs/threadimageio/thumb/thumbnailcreator.cpp
M  +1    -0    core/libs/threadimageio/thumb/thumbnailcreator.h
M  +19   -3    core/libs/threadimageio/thumb/thumbnailloadthread.cpp
M  +7    -0    core/libs/threadimageio/thumb/thumbnailloadthread.h
M  +9    -15   core/showfoto/main/showfoto.cpp
M  +13   -0    core/showfoto/main/showfotosettings.cpp
M  +3    -0    core/showfoto/main/showfotosettings.h
M  +6    -0    core/showfoto/setup/showfotosetupmisc.cpp

https://invent.kde.org/graphics/digikam/-/commit/17c9ba2e86d4338e7cee33753d79ef34de5386f5
Comment 7 mat 2024-12-22 21:18:18 UTC
My respect Maik, you are a high-speed programmer. I know how time-consuming programming is, even if I only have basic knowledge. Thank you very much