---
title: "blurhash · RUAL Documentation"
description: "Compute a blurhash placeholder for the given images : a ~30 character string a client paints as a blur while the real image loads"
canonical: https://docs.rual.nl/block-types/files/function_image_blurhash
language: en
---

# blurhash

This block is part of the [`files`](https://docs.rual.nl/block-types/files) group and was last modified in core [`v15.0.0`](https://docs.rual.nl/core-versions/150000).

Compute a blurhash placeholder for the given images : a ~30 character string a client paints as a blur while the real image loads

- flow `flow`

- files required `file` The images to hash

- components x `number` Horizontal detail, 1-9 (default 4). More components means a longer hash, not a sharper preview.

- components y `number` Vertical detail, 1-9 (default 3)

- flow `flow`

- hash `value` Blurhash of the first image : the common case, so it does not need an array index

- hashes `array` One blurhash per image, in input order

- success `condition` True if every image hashed. False if one or more failed

- errors `array` Error messages

- failed `file` Images which could not be hashed

A typical wiring for [blurhash](https://docs.rual.nl/block-types/files/function_image_blurhash): a [function trigger](https://docs.rual.nl/block-types/globals/trigger_custom_function) starts the flow; [get file from assets](https://docs.rual.nl/block-types/files/file_from_assets) feeds the `file` pin; the `flow` out pin feeds [debug](https://docs.rual.nl/block-types/state%20ui/state_debug).

![Studio canvas example for the blurhash block: typical wiring for blurhash.](https://docs.rual.nl/canvas-examples/function_image_blurhash.png)

### Version history

Introduced in [`v15.0.0`](https://docs.rual.nl/core-versions/150000).
