darktable-org / darktable-org/darktable

keep thumbnails on disk for only the last ≈N visited images

Open
#17,354 9 comments 0 reactions 1 assignee View on GitHub

@wpferguson is already working on this.

Since Aug 18, 2025.

feature: enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.