Skip to content

Feature: Encode aspect ratio in blurhash #259

@webocrat

Description

@webocrat

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions