Skip to content

thecuvii/blurrio

Repository files navigation

Blurrio

Generate image placeholder in browser at ease.

Usage

import { generate } from 'blurrio' // for browser

// runs in browser, returns a base64 string
const blur = await generate(file, 180)

<img src={blur}/>

TODO

  • Support more input formats.
  • Support nodejs via sharp.

Credit

This package is simply a tiny wrapper for StackBlur.js and Sharp.