About
Login
Register
Links
People
Trending
Discover
🏒 Lucian Marin
I found a clever way to get the dominant color from an image. Just resize it to 1px.
7y, 40w
4 replies ¬
Login
or
register
your account to reply
Martijn
Does that give the dominant colour? I would expect most resize algos to give the average colour value of an image, which does not even have to occur in the image itself.
7y, 40w
2 replies
John Olinda
I'd be curious to see what is actually going on here. I guess it could differ from program to program.
7y, 40w
reply
🏒 Lucian Marin
There are a few resizing algorithms that produce almost the same color. It's perfect as a placeholder until the image loads.
7y, 40w
reply
Mark Dain
Oh that's brilliant. Will have to try this at home!
7y, 40w
reply