rebuild thumbnails Lua - how to use it

Hi - another newb question I fear. How do I implement the ‘rebuild thumbnails’ Lua? I have a number of skulls and when I click on one of them the image opens fine in Darkroom, when I return to Lighttable the thumbnail is there so all’s well. I’m hoping that I won’t have to go through every one individually and that ‘rebuild thumbnails’ will do this for me. But how do I use it? I’m on a Mac running the latest Tahoe

The preferred way would be to use the command line for that. See the manual for details: darktable user manual - darktable-generate-cache

Another possibility is the dt settings > lighttable > thumbnails > generate thumbnails in background >

Probably there are still more options…

Kind regards, Jetze

Thanks Jetze - sorted now! :grinning:

1 Like
  • go into your lua-scripts directory (~/.config/darktable/lua
  • create a directory (MyStuff, other, …)
  • put the regenerate_thumbnails.lua script in the directory
  • start darktable and go to the script manager module (bottom left in lighttable)
  • select the directory you put the script in.
  • start it
  • assign a shortcut so that you can hover an image and regenerate the thumbnail or make a selection and click the shortcut to regenerate all the thumbnails for the selection.

The advantages of the regenerate_thumbnails script is that it runs inside darktable and it only generates the thumbnail sizes so it takes up less storage and runs faster than darktable-generate-cache.

2 Likes