aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <max@nextcloud.com>2025-01-28 10:08:32 +0100
committermax-nextcloud <max@nextcloud.com>2025-01-28 15:19:38 +0100
commitfaaed68c04776c1ab5cde3286c31032cb4d8be4b (patch)
tree7cac753918bf6ac4c25e87ee0776e91e478839c2
parent2c773033bcf44268cad1e427fffdb9bbcc6a0327 (diff)
downloadnextcloud-server-faaed68c04776c1ab5cde3286c31032cb4d8be4b.tar.gz
nextcloud-server-faaed68c04776c1ab5cde3286c31032cb4d8be4b.zip
fix(performance): use low resolution for blurhashfix/low-res-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 <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 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<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;