darktable-org / darktable-org/darktable
keep thumbnails on disk for only the last ≈N visited images
@wpferguson is already working on this.
Since Aug 18, 2025.
- Dominant language
- C
- Stars
- 13.1k
- Forks
- 1.4k
- Avg merge
- 22h 14m
- Merged PRs (30d)
- 198
Description
Is your feature request related to a problem? Please describe.
High-resolution thumbnails are very useful, eg for culling images. As RAM is usually a limiting factor, Darktable's ability to save thumbnails to disk is a great feature that speeds up processing. One downside of the current implementation is that thumbnails are not deleted from the cache automatically, so the user either deletes the thumbnail cache from time to time, or accepts that a lot of disk space is consumed.
Describe the solution you'd like
It would be great to have an option that makes Darktable keep the thumbnails for the most recent N visited images, with a default like N = 1000 or similar. This is sufficient for most use cases, yet would save a lot of disk space for large collections.
The implementation can be approximate, eg only remove items from the cache when the number of images grows above some threshold N + T. T would not need to be exposed in the preferences GUI.
Alternatives
Manual cleaning is available currently, but it is not very convenient. This feature would automate it.
Additional context
See discussion where it was suggested that I open an issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.