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:00 +0000 |
commit | 12983f80796239562123a4d555475b0b74b191dd (patch) | |
tree | 28b12bf01ce5f9d1db7d087a4bf12e5fbd736164 | |
parent | 77e324e18211084ab1ac9d34f37c09610458c36b (diff) | |
download | nextcloud-server-12983f80796239562123a4d555475b0b74b191dd.tar.gz nextcloud-server-12983f80796239562123a4d555475b0b74b191dd.zip |
fix(performance): use low resolution for blurhashbackport/50494/stable30
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.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 bb5bc3cadb2..b8ae716ebf9 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; |