[#2497] Media preview proxy: added quality config setting, adjusted width/height defaults.

This commit is contained in:
Ivan Tashkinov 2020-08-21 08:59:08 +03:00
commit aa0a5ffb48
4 changed files with 15 additions and 5 deletions

View file

@ -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
]

View file

@ -1925,6 +1925,11 @@ config :pleroma, :config_description, [
type: :integer,
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,