How to use blurhash - 2 common examples

To help you get started, we’ve selected a few blurhash examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github woltapp / react-blurhash / demo / BlurhashImageEncoder.tsx View on Github external
() =>
      data
        ? encode(
            data.imageData.data,
            data.imageData.width,
            data.imageData.height,
            componentX,
            componentY,
          )
        : undefined,
    [data, componentX, componentY],
github woltapp / react-blurhash / demo / Demo.tsx View on Github external
  const blurhashValid = useMemo(() => isBlurhashValid(hash), [hash]);

blurhash

Encoder and decoder for the Wolt BlurHash algorithm.

MIT
Latest version published 1 year ago

Package Health Score

73 / 100
Full package analysis

Popular blurhash functions