[#2497] Media preview proxy: added quality config setting, adjusted width/height defaults.
This commit is contained in:
parent
02ad1cd8e9
commit
aa0a5ffb48
4 changed files with 15 additions and 5 deletions
|
|
@ -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
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue