blurhash

This block is part of the files group and was last modified in core v15.0.0.

blurhash v15.0.0

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

In pins 3 + flow
  • 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)

Out pins 5 + flow
  • 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: a function trigger starts the flow; get file from assets feeds the file pin; the flow out pin feeds debug.

Studio canvas example for the blurhash block: typical wiring for blurhash.

Version history

Introduced in v15.0.0.


Back to files Return to the main group to view all sub-groups Back to images Return to the group to view all blocks within this group