Better way to pick a user's dominant color for their profile.
Recently, we got a new addition to our profile, which is a banner. Users without nitro can't change it to a different color, so Discord picks what it thinks is the best color. Sadly, this picks the background most of the time and doesn't reflect the user's avatar.
Since I'm a fellow developer, I looked up a good NPM package to get the dominant color:
https://www.npmjs.com/package/color-thief. I tested it with my avatar and a few of my friends, and it worked really well. I also used some random image samples to test and again, worked amazingly well most of the time.
I'm wondering if it's a deliberate decision to make the color not as good, or if the developers simply didn't know this existed. Please, if you could add this, that'd be fantastic!
1
-
I think a great addition would be a defaultBannerColor property for users
0
Please sign in to leave a comment.
Comments
1 comment