From 1b34f6ad654ea3b886b820c49c1d88c1ab63a557 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(-) (limited to 'lib') 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