Analyzers
Image Blurhash

Image Blurhash analyzer

Stores image blurhash to blob metadata.

Usage

Install package

yarn add @uplo/analyzer-image-blurhash sharp

Add analyzer to Uplo

import ImageBlurhashAnalyzer from '@uplo/analyzer-image-blurhash';
 
const uplo = Uplo({
  analyzers: [
    ImageBlurhashAnalyzer()
  ]
})

You can configure blurhash size, xComponents and yComponents

const uplo = Uplo({
  analyzers: [
    ImageBlurhashAnalyzer({
      size: 32,
      xComponents: 4,
      yComponents: 3,
    })
  ]
})