From d7f967cbb599c64d18fe951d1725bf3050597dda Mon Sep 17 00:00:00 2001 From: kim Date: Tue, 10 Jun 2025 15:43:31 +0200 Subject: [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 Co-authored-by: kim Co-committed-by: kim --- example/config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'example') 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) -- cgit v1.2.3