diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-08-21 08:59:08 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-08-21 08:59:08 +0300 |
commit | aa0a5ffb4849880b5adbcc9188de01ef778381e3 (patch) | |
tree | 3a87c2e5a2aae7ef790a03a1da3729a0e0720cdc /config | |
parent | 02ad1cd8e97c44824b92b53ea1879a965bbd8358 (diff) | |
download | pleroma-aa0a5ffb4849880b5adbcc9188de01ef778381e3.tar.gz pleroma-aa0a5ffb4849880b5adbcc9188de01ef778381e3.zip |
[#2497] Media preview proxy: added `quality` config setting, adjusted width/height defaults.
Diffstat (limited to 'config')
-rw-r--r-- | config/config.exs | 5 | ||||
-rw-r--r-- | config/description.exs | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/config/config.exs b/config/config.exs index 6e6231cf8..b399ce6d7 100644 --- a/config/config.exs +++ b/config/config.exs @@ -441,8 +441,9 @@ config :pleroma, Pleroma.Web.MediaProxy.Invalidation.Script, script_path: nil # Note: media preview proxy depends on media proxy to be enabled config :pleroma, :media_preview_proxy, enabled: false, - thumbnail_max_width: 400, - thumbnail_max_height: 200, + thumbnail_max_width: 600, + thumbnail_max_height: 600, + quality: 2, proxy_opts: [ head_request_max_read_duration: 5_000 ] diff --git a/config/description.exs b/config/description.exs index 90d8eca65..22da60900 100644 --- a/config/description.exs +++ b/config/description.exs @@ -1926,6 +1926,11 @@ config :pleroma, :config_description, [ description: "Max height of preview thumbnail." }, %{ + key: :quality, + type: :integer, + description: "Quality of the output. Ranges from 1 (max quality) to 31 (lowest quality)." + }, + %{ key: :proxy_opts, type: :keyword, description: "Media proxy options", |