Blur Images
Unanswered
Somali posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
SomaliOP
Is there a way to generate the base64 image needed for the blur effect on images on demand? I’m wondering how I could have blur images for the ones coming dynamically from a CMS for example.
https://nextjs.org/docs/app/api-reference/components/image#blurdataurl
https://nextjs.org/docs/app/api-reference/components/image#blurdataurl
3 Replies
![Avatar](https://cdn.discordapp.com/avatars/678259999201427466/a_54265510de155a7d7909e4d21d587a76.gif?size=256)
Clown
![Image](https://cdn.discordapp.com/attachments/1170108828663164928/1170267463955517542/image0.jpg?ex=65586b81&is=6545f681&hm=2d54688f84a1be1538325cd76ac88b5bac2ee221a48873c9110a979e7470ef12&)
Basically you need to generate the blurhash beforehand because you need a image to generate the blurhash. Its quite a small string so it can load very fast compared to big image
I dont know if nextjs natively provides a generator for this but generators are available online in many languages:
https://github.com/woltapp/blurhash
https://github.com/woltapp/blurhash