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 --- test/envparsing.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/envparsing.sh') diff --git a/test/envparsing.sh b/test/envparsing.sh index d85f0b940..b6d75cf07 100755 --- a/test/envparsing.sh +++ b/test/envparsing.sh @@ -148,6 +148,7 @@ EXPECT=$(cat << "EOF" "media-local-max-size": "420B", "media-remote-cache-days": 30, "media-remote-max-size": "420B", + "media-thumb-max-pixels": 42069, "media-video-size-hint": "40.0MiB", "metrics-enabled": false, "oidc-admin-groups": [ @@ -272,6 +273,7 @@ GTS_MEDIA_EMOJI_LOCAL_MAX_SIZE=420 \ GTS_MEDIA_EMOJI_REMOTE_MAX_SIZE=420 \ GTS_MEDIA_FFMPEG_POOL_SIZE=8 \ GTS_MEDIA_VIDEO_SIZE_HINT='40MiB' \ +GTS_MEDIA_THUMB_MAX_PIXELS=42069 \ GTS_METRICS_ENABLED=false \ GTS_STORAGE_BACKEND='local' \ GTS_STORAGE_LOCAL_BASE_PATH='/root/store' \ -- cgit v1.2.3