Encoding the original image aspect ratio in the blurhash string would allow displaying the blurhash with correct aspect ratio before the image is loaded.
I'm currently extracting the aspect ratio when creating the blurhash and then sending it to the frontend to properly size the image container before the image is loaded.
My application is a book store - the covers have different aspect ratios and I need to display them in a grid (on the search page).
Of course, this can also be implemented as an extension to the blurhash algorithm, but it would be nice to have native support in a future version of blurhash.
Encoding the original image aspect ratio in the blurhash string would allow displaying the blurhash with correct aspect ratio before the image is loaded.
I'm currently extracting the aspect ratio when creating the blurhash and then sending it to the frontend to properly size the image container before the image is loaded.
My application is a book store - the covers have different aspect ratios and I need to display them in a grid (on the search page).
Of course, this can also be implemented as an extension to the blurhash algorithm, but it would be nice to have native support in a future version of blurhash.