What is BlurHash?
BlurHash is a compact text representation of a blurred image placeholder. An encoder summarizes an image’s broad colors and shapes, and a decoder turns the resulting string into a preview while the full image loads.
How BlurHash works
BlurHash represents low-frequency image information with a configurable number of components. More components retain more structure and require a longer string. Client code with a BlurHash decoder can render that string locally, avoiding a separate placeholder-image request when the string arrives with existing page data. It remains a deliberate approximation: text, fine edges, and recognizable detail belong to the full asset or a real thumbnail.
Key facts
- Despite its name, a BlurHash is not a cryptographic checksum and should not be used to verify integrity or authenticate a file.
- The representation does not preserve an alpha channel. Transparent source images need a deliberate background policy when preparing their placeholder.
- A placeholder still reveals information about an image. Apply the source asset’s access policy to placeholder metadata too.
When BlurHash matters
Store a BlurHash with gallery or feed metadata and display its decoded placeholder before loading the actual image. Preserve the image dimensions separately to reserve the correct layout space.
How Transloadit helps with BlurHash
Transloadit extracts a BlurHash string when output_meta includes "blurhash": true on the Step producing the image, such as /upload/handle for uploaded originals or /image/resize for processed outputs. Setting it only on /transloadit/store does not request extraction.
Treat the BlurHash as optional metadata and render a fallback when it is absent. Retain both the generated metadata and the image URL when building the consuming interface.