Skip to content

Commit cb27577

Browse files
max-nextcloudbackportbot[bot]
authored andcommitted
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 <max@nextcloud.com>
1 parent c250c6c commit cb27577

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/Blurhash/Listener/GenerateBlurhashMetadata.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
* @template-implements IEventListener<AMetadataEvent>
4545
*/
4646
class GenerateBlurhashMetadata implements IEventListener {
47-
private const RESIZE_BOXSIZE = 300;
47+
private const RESIZE_BOXSIZE = 30;
4848

4949
private const COMPONENTS_X = 4;
5050
private const COMPONENTS_Y = 3;

0 commit comments

Comments
 (0)