What a BlurHash is
BlurHash encodes the broad colours and light of an image into a string of around 20–30 characters. Your page shows a soft blurred version from that string while the real image loads, instead of an empty box. Because the hash is tiny, it can sit in your database or API response next to the image URL.
Filemint encodes from a small copy of each image (BlurHash keeps only low frequencies, so detail would be wasted) and decodes the result to show you exactly what visitors will see.
Choosing components
Components control how much structure survives. 4 × 3 is the common choice for landscape photos, and Follow image shape mirrors that for portraits. More components keep more shapes but make a longer hash; values above 6 rarely help.
- CSS inlines a tiny PNG of the decoded hash — no JavaScript needed.
- React uses the react-blurhash component.
- Next.js fills placeholder="blur" with a blurDataURL.
- JavaScript decodes the hash onto a canvas with the blurhash package.