diff options
author | Max <max@nextcloud.com> | 2025-01-28 10:08:32 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2025-01-29 10:44:15 +0000 |
commit | 1b34f6ad654ea3b886b820c49c1d88c1ab63a557 (patch) | |
tree | 5d488bcdd5000c0f87641d23c81f0b57e7c9584a /lib | |
parent | d43f7b6ee6116027a661ec19a08df7991205a344 (diff) | |
download | nextcloud-server-1b34f6ad654ea3b886b820c49c1d88c1ab63a557.tar.gz nextcloud-server-1b34f6ad654ea3b886b820c49c1d88c1ab63a557.zip |
fix(performance): use low resolution for blurhashbackport/50494/stable31
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Blurhash/Listener/GenerateBlurhashMetadata.php | 2 |
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; |