diff options
| author | 2025-06-10 15:43:31 +0200 | |
|---|---|---|
| committer | 2025-06-10 15:43:31 +0200 | |
| commit | d7f967cbb599c64d18fe951d1725bf3050597dda (patch) | |
| tree | 061a302732684980e3dbf3f1a6012f3cbef01e26 /example | |
| parent | [chore] Update interactionPolicy sub-policy parsing in line with documented d... (diff) | |
| download | gotosocial-d7f967cbb599c64d18fe951d1725bf3050597dda.tar.xz | |
[feature] configurable maximum thumbnail dimensions (#4258)
- adds configuration for thumbnail maximum dimensions with warning on exceeding recommendations
- moves the media configuration vars into their own sub-struct
- replaces the configuration flag funcs with simple string consts
Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4258
Reviewed-by: tobi <kipvandenbos@noreply.codeberg.org>
Co-authored-by: kim <grufwub@gmail.com>
Co-committed-by: kim <grufwub@gmail.com>
Diffstat (limited to 'example')
| -rw-r--r-- | example/config.yaml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/example/config.yaml b/example/config.yaml index cb3addac1..4526fb8fc 100644 --- a/example/config.yaml +++ b/example/config.yaml @@ -629,6 +629,13 @@ media-video-size-hint: 40MiB # Default: 40MiB (41943040 bytes) media-remote-max-size: 40MiB +# Int. Max size in pixels of any one dimension of +# a thumbnail (as input media ratio is preserved). +# +# Examples: [256, 512, 1024] +# Default: 512 +media-thumb-max-pixels: 512 + # Int. Minimum amount of characters required as an image or video description. # Examples: [500, 1000, 1500] # Default: 0 (not required) |
