[#2497] Added support for :eimp for image resizing.

This commit is contained in:
Ivan Tashkinov 2020-05-14 20:18:31 +03:00
commit f1f588fd52
3 changed files with 56 additions and 14 deletions

View file

@ -393,7 +393,9 @@ config :pleroma, :media_proxy,
# Note: media preview proxy depends on media proxy to be enabled
config :pleroma, :media_preview_proxy,
enabled: false,
limit_dimensions: "400x200",
enable_eimp: true,
thumbnail_max_width: 400,
thumbnail_max_height: 200,
proxy_opts: [
head_request_max_read_duration: 5_000,
max_read_duration: 10_000