About
Register
Login
Links
People
Trending
Discover
🏒 Lucian Marin
I found a clever way to get the dominant color from an image. Just resize it to 1px.
9y, 3d
4 replies ¬
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.
9y, 2d
2 replies
🏒 Lucian Marin
There are a few resizing algorithms that produce almost the same color. It's perfect as a placeholder until the image loads.
9y, 1d
reply
Login
or
register
your account to reply