Skip to content

Commit

Permalink
Updated dt_lua_image_t.generate_cache to match the way the code works.
Browse files Browse the repository at this point in the history
  • Loading branch information
wpferguson committed Feb 17, 2022
1 parent fee1e00 commit 7782b81
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions content/lua.api.manual/types/dt_lua_image_t.md
Original file line number Diff line number Diff line change
Expand Up @@ -442,14 +442,14 @@ darktable will regenerate the thumbnail by itself when it is needed.
```
self.function(
check_dirs : boolean
start_size : integer
end_size : integer
min_size : integer
max_size : integer
)
```
* **self** - _[types.dt_lua_image_t](../types/dt_lua_image_t)_ - The image whose cache is to be generated.
* **check_dirs** - _boolean_ - check if the mipmap cache directories exist. Create them if necessary.
* **start_size** - _integer_ - mipmap size to generate first
* **end_size** - _integer_ - mipmap size to generate last
* **min_size** - _integer_ - minimum mipmap size to generate
* **max_size** - _integer_ - maximum mipmap size to generate

**NOTES:**
* mipmap cache image sizes
Expand All @@ -464,6 +464,5 @@ self.function(
- 8 - full resolution

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

0 comments on commit 7782b81

Please sign in to comment.