Skip to content

Commit 7782b81

Browse files
committed
Updated dt_lua_image_t.generate_cache to match the way the code works.
1 parent fee1e00 commit 7782b81

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

content/lua.api.manual/types/dt_lua_image_t.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -442,14 +442,14 @@ darktable will regenerate the thumbnail by itself when it is needed.
442442
```
443443
self.function(
444444
check_dirs : boolean
445-
start_size : integer
446-
end_size : integer
445+
min_size : integer
446+
max_size : integer
447447
)
448448
```
449449
* **self** - _[types.dt_lua_image_t](../types/dt_lua_image_t)_ - The image whose cache is to be generated.
450450
* **check_dirs** - _boolean_ - check if the mipmap cache directories exist. Create them if necessary.
451-
* **start_size** - _integer_ - mipmap size to generate first
452-
* **end_size** - _integer_ - mipmap size to generate last
451+
* **min_size** - _integer_ - minimum mipmap size to generate
452+
* **max_size** - _integer_ - maximum mipmap size to generate
453453

454454
**NOTES:**
455455
* mipmap cache image sizes
@@ -464,6 +464,5 @@ self.function(
464464
- 8 - full resolution
465465

466466
* To generate a single size mipmap image set start_size and end_size to the same value
467-
* When generating multiple sizes put the largest size as the start size and the smallest as the end.
468-
* When different start and end sizes are specified, every size mipmap from start to end is generated.
467+
* When different min_size and max_size sizes are specified, every size mipmap from min_size to max_size is generated.
469468
* When looping over a set of images and generating just one size, check for directories on the first image only.

0 commit comments

Comments
 (0)