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

fix blurhash function to handle long horizontal image strip #357

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

asdfzdfj
Copy link
Contributor

apparently the blurhash encoder could fail when operating on long horizontal image strip, because the internal image scaling for encoder input could results in an image with height less that 1 given max width

the internal image scaling will now attempt to scale with minimum image height capped at the value of blurhash's y component when this condition is met

apparently the blurhash encoder could fail when operating on long
horizontal image strip, because the internal image scaling for encoder
input could results in an image with height less that 1 given max width

the internal image scaling will now attempt to scale with minimum image
height capped at the value of blurhash's y component when this condition
is met
@asdfzdfj asdfzdfj merged commit e6c0542 into main Dec 18, 2023
7 checks passed
@asdfzdfj asdfzdfj deleted the fix/blurhash-on-long-image branch December 18, 2023 15:47
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

Successfully merging this pull request may close these issues.

None yet

2 participants