Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Encode aspect ratio in blurhash #259

Open
webocrat opened this issue Dec 13, 2024 · 0 comments
Open

Feature: Encode aspect ratio in blurhash #259

webocrat opened this issue Dec 13, 2024 · 0 comments

Comments

@webocrat
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant