aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <max@nextcloud.com>2025-01-28 10:08:32 +0100
committerAndy Scherzinger <info@andy-scherzinger.de>2025-01-28 23:04:05 +0100
commit341866be769e9f7008096757a07463f3987ce2fb (patch)
tree0f170dbfa8fa93a5204aa124818e12bfdaa9a627
parentc15b158432ebc31664c0228b60ec3711291abf6b (diff)
downloadnextcloud-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.php2
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;