gnome-bg: improve "representative colour" algorithm
Submitted by Allison (desrt)
Assigned to Desktop Maintainers
Link to original bug (#671780)
Description
Presently, we use a plain numerical average of the red/green/blue channels of each pixel value to determine the "representative colour" of the background image.
This has two potential problems.
The first is that the selected colour is probably not the best choice, for two reasons. One is because selecting based on h/s/v is probably a perceptively better choice than r/g/b. Second is because the image may have two predominant shades and we'd be better to select one of them rather than taking the average of both.
The second issue is that performance of our approach may be bad.