diff options
author | Max <max@nextcloud.com> | 2025-01-28 10:08:32 +0100 |
---|---|---|
committer | Andy Scherzinger <info@andy-scherzinger.de> | 2025-01-28 23:04:05 +0100 |
commit | 341866be769e9f7008096757a07463f3987ce2fb (patch) | |
tree | 0f170dbfa8fa93a5204aa124818e12bfdaa9a627 | |
parent | c15b158432ebc31664c0228b60ec3711291abf6b (diff) | |
download | nextcloud-server-backport/50494/stable29.tar.gz nextcloud-server-backport/50494/stable29.zip |
fix(performance): use low resolution for blurhashbackport/50494/stable29
Improve blurhash performance by using a low res image.
The results are hard to destinguish visualy.
It is a **blur** hash after all.
Signed-off-by: Max <max@nextcloud.com>
-rw-r--r-- | lib/private/Blurhash/Listener/GenerateBlurhashMetadata.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Blurhash/Listener/GenerateBlurhashMetadata.php b/lib/private/Blurhash/Listener/GenerateBlurhashMetadata.php index 55dd837519d..66976601f4e 100644 --- a/lib/private/Blurhash/Listener/GenerateBlurhashMetadata.php +++ b/lib/private/Blurhash/Listener/GenerateBlurhashMetadata.php @@ -44,7 +44,7 @@ use OCP\Lock\LockedException; * @template-implements IEventListener<AMetadataEvent> */ class GenerateBlurhashMetadata implements IEventListener { - private const RESIZE_BOXSIZE = 300; + private const RESIZE_BOXSIZE = 30; private const COMPONENTS_X = 4; private const COMPONENTS_Y = 3; |