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 2 years ago

Package Health Score

67 / 100
Full package analysis

Popular blurhash functions