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
- flow
flow - files required
fileThe images to hash
- components x
numberHorizontal detail, 1-9 (default 4). More components means a longer hash, not a sharper preview.
- components y
numberVertical detail, 1-9 (default 3)
- flow
flow - hash
valueBlurhash of the first image : the common case, so it does not need an array index
- hashes
arrayOne blurhash per image, in input order
- success
conditionTrue if every image hashed. False if one or more failed
- errors
arrayError messages
- failed
fileImages which could not be hashed
Computes blurhash placeholder strings for every image wired into the files pin. hash holds the FIRST image's hash for the common single-image case; hashes holds one hash per image in input order. components_x (default 4) and components_y (default 3) set detail, range 1-9; more components means a longer hash, not a sharper preview. success is true only when EVERY image hashed; failed images land on failed_file with their messages on errors.
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.
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 