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>
This commit is contained in:
Max 2025-01-28 10:08:32 +01:00 committed by max-nextcloud
parent 2c773033bc
commit faaed68c04

View file

@ -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;