How to use the blurhash.encode function in blurhash

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],

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