What is BlurHash and how does it work?
mainBlurHash is a compact representation of an image placeholder. It converts an image into a short string (typically 20-30 characters) that can be stored in a database (e.g., as a JSON field).
Workflow:
- Backend: Encode the image into a BlurHash string and store it alongside the image URL.
- Client: Send both the URL and the BlurHash string to the client.
- Client: Decode the string into a low-resolution placeholder image to display while the high-resolution image loads over the network.