From 341866be769e9f7008096757a07463f3987ce2fb Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 28 Jan 2025 10:08:32 +0100 Subject: fix(performance): use low resolution for blurhash 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 --- lib/private/Blurhash/Listener/GenerateBlurhashMetadata.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ class GenerateBlurhashMetadata implements IEventListener { - private const RESIZE_BOXSIZE = 300; + private const RESIZE_BOXSIZE = 30; private const COMPONENTS_X = 4; private const COMPONENTS_Y = 3; -- cgit v1.2.3