AnalyzersImage Blurhash

Image Blurhash analyzer

Stores image blurhash to blob metadata.

Usage

Install analyzer and sharp packages

npm i @uplo/analyzer-image-blurhash sharp

Add analyzer to Uplo

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

You can configure blurhash size, xComponents and yComponents

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