You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set first/last/random image as thumbnail for newly created albums or albums assets have been added to. If set to random-filtered, thumbnails are shuffled for all albums whose assets would not be filtered out or ignored by the ignore or path-filter options, even if no assets were added during
97
+
the run. If set to random-all, the thumbnails for ALL albums will be shuffled on every run. (default: None)
94
98
```
95
99
96
100
__Plain example without optional arguments:__
@@ -126,6 +130,8 @@ The environment variables are analoguous to the script's command line arguments.
126
130
| ALBUM_ORDER | no | Set sorting order for newly created albums to newest (`desc`) or oldest (`asc`) file first, Immich defaults to newest file first, allowed values: `asc`, `desc`|
127
131
| FIND_ASSETS_IN_ALBUMS | no | By default, the script only finds assets that are not assigned to any album yet. Set this option to make the script discover assets that are already part of an album and handle them as usual. (default: `False`)<br>Refer to [Assets in Multiple Albums](#assets-in-multiple-albums). |
128
132
| PATH_FILTER | no | Use glob-like patterns to filter assets before album name creation. This filter is evaluated before any values passed with --ignore. (default: ``)<br>Refer to [Filtering](#filtering). |
133
+
| SET_ALBUM_THUMBNAIL | no | Set first/last/random image as thumbnail (based on image creation timestamp) for newly created albums or albums assets have been added to.<br> Allowed values: `first`,`last`,`random`,`random-filtered`,`random-all`<br>If set to `random-filtered`, thumbnails are shuffled for all albums whose assets would not be filtered out or ignored by the `IGNORE` or `PATH_FILTER` options, even if no assets were added during
134
+
the run. If set to random-all, the thumbnails for ALL albums will be shuffled on every run. (default: `None`)<br>Refer to [Setting Album Thumbnails](#setting-album-thumbnails). |
129
135
130
136
#### Run the container with Docker
131
137
@@ -404,6 +410,22 @@ In that case, the script will request all assets from Immich and add them to the
404
410
> This option can be especially useful when [Filtering for Assets](#filtering-for-assets).
405
411
406
412
413
+
## Setting Album Thumbnails
414
+
415
+
The script supports automatically setting album thumbnails by specifying the `--set-album-thumbnail` option (bare Python) or `SET_ALBUM_THUMBNAIL` environment variable (Docker). There are several options to choose from for thumbnail selection:
416
+
- `first`: Sets the first image as thumbnail based on image creation timestamps
417
+
- `last`: Sets the last image as thumbnail based on image creation timestamps
418
+
- `random`: Sets the thumbnail to a random image
419
+
420
+
When using one of the values above, the thumbnail of an album will be updated whenever assets are added.
421
+
422
+
Furthermore, the script supports two additional modes that are applied __even if no assets were added to the album__:
423
+
- `random-all`: In this mode the thumbnail for __all albums__ will be shuffled every time the script runs, ignoring any `root_path`, `--ignore` or `--path-filter` values.
424
+
- `random-filtered`: Using this mode, the thumbnail for an albums will be shuffled every run if the album is not ignored by `root_path` or due to usage of the `--ignore` or `--path-filter` options.
425
+
426
+
> [!CAUTION]
427
+
> Updating album thumbnails cannot be reverted!
428
+
407
429
## Dealing with External Library Changes
408
430
409
431
Due to their nature, external libraries may be changed by the user without Immich having any say in it.
0 commit comments