Skip to content

Commit eb30836

Browse files
authored
improve performance of create_thumbnails.lua
1 parent 554fd03 commit eb30836

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/create_thumbnails.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ dt.gui.libs.image.register_action(
4848

4949
for i, image in pairs(images) do
5050
-- generate all thumbnails, a max value of 8 means that also a full size preview image is created
51-
image:generate_cache(true, 0, 8)
51+
-- check if the mipmap cache directories exist only once
52+
image:generate_cache(i == 1, 0, 8)
5253

5354
-- update progress_bar
5455
job.percent = i / #images

0 commit comments

Comments
 (0)