From faaed68c04776c1ab5cde3286c31032cb4d8be4b 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 1d0a502df6d..b84dd61fc5f 100644 --- a/lib/private/Blurhash/Listener/GenerateBlurhashMetadata.php +++ b/lib/private/Blurhash/Listener/GenerateBlurhashMetadata.php @@ -27,7 +27,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