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

Reduce intensity of too dominant colors #241

Open
DreamUpProjekt opened this issue Jun 29, 2023 · 2 comments
Open

Reduce intensity of too dominant colors #241

DreamUpProjekt opened this issue Jun 29, 2023 · 2 comments

Comments

@DreamUpProjekt
Copy link

DreamUpProjekt commented Jun 29, 2023

For most of the images I use blurhash on, the result looks nice and as expected. But there are images, which look kinda weird, because of the color scheme of the decoding produces.

Here are some examples of what I mean:

BlurHash Example 1

BlurHash Example 2

BlurHash Example 3

BlurHash Example 4

These very intense color "drops" appear and disappear, depending on the number of tiles, so it would be possible to get the best outcome, setting the components manually. But I want to get blurhashs for usergenerated images, so I need an overall rule to set the amount of components.

Is there anything I can do in this situation?

I'm working with the dart implementation on Flutter.

@jhay-25
Copy link

jhay-25 commented Aug 26, 2023

@FaKo97 have you found any solution for this?

@webocrat
Copy link

You should increase the number of components. I see you're using 2x2.

If you need a short blurhash (although this would only make practical sense if you have tens or hundreds of millions of images), I suggest preprocessing the images. Downsize to 32x32 and then try changing the gamma or moving the black point higher up. (Similar to the Levels function in Photoshop)

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

3 participants