From 6117e19d4f64af1da36a0b8196b8d78073906446 Mon Sep 17 00:00:00 2001 From: Benedikt Kulmann Date: Wed, 12 Jun 2024 10:51:26 +0200 Subject: [PATCH] fix: thumbnail max input height Thumbnail max input width and height need to be the same, because images can be portrait or landscape. See https://github.com/owncloud/ocis/issues/9234 --- changelog/unreleased/max-input-image.md | 1 + services/thumbnails/pkg/config/defaults/defaultconfig.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog/unreleased/max-input-image.md b/changelog/unreleased/max-input-image.md index bc688c53d48..c3ed7d2d0e3 100644 --- a/changelog/unreleased/max-input-image.md +++ b/changelog/unreleased/max-input-image.md @@ -2,5 +2,6 @@ Change: Define maximum input image dimensions and size when generating previews This is a general hardening change to limit processing time and resources of the thumbnailer. +https://github.com/owncloud/ocis/pull/9360 https://github.com/owncloud/ocis/pull/9035 https://github.com/owncloud/ocis/pull/9069 diff --git a/services/thumbnails/pkg/config/defaults/defaultconfig.go b/services/thumbnails/pkg/config/defaults/defaultconfig.go index be5453e0de2..6c432501778 100644 --- a/services/thumbnails/pkg/config/defaults/defaultconfig.go +++ b/services/thumbnails/pkg/config/defaults/defaultconfig.go @@ -50,7 +50,7 @@ func DefaultConfig() *config.Config { CS3AllowInsecure: false, DataEndpoint: "http://127.0.0.1:9186/thumbnails/data", MaxInputWidth: 7680, - MaxInputHeight: 4320, + MaxInputHeight: 7680, MaxInputImageFileSize: "50MB", }, }