BlurHash API: Azure Function in TypeScript

Intro

This repo contains an Open Source Azure Function using TypeScript to encode and decode images using the BlurHash algorithm.

Reload the page and view the placeholder BlurHash image below.

| Read the blog post for more information.

Image courtesy of studio23.london.

Using the API

POST:/api/v1/blur-hash

Encodes publicly accessible image to a BlurHash.

Required body param:

GET:/api/v1/blur-hash

Decodes the BlurHash and returns a jpeg.

Required URL params:

Example as shown above.