I haven't looked at the source in great detail yet so maybe you already have this feature.<p>It would be nice if you could specify an offset along the color wheel to select complimentary or analogous colors.<p>The default of selecting the dominant color removes all contrast between the image and the background which seems like a rarely desired behavior.
Firstly, I like it.
It's an elegant solution that gives excellent results and works as it says.<p>Secondly, I don't like it.
In the general case, this is not something that should be left to the client to calculate - whenever you are serving the image, the server ought to know what the dominant colour is. Why make the client calculate this every time the image is displayed?<p>This is a case where JavaScript harms the user: a JavaScript/jQuery solution to this has significant potential problems: there are numerous cases where it will break, some of which are identified in the other comments.
Beware when you host assets directly from your GitHub source tree. They limit requests - I had to refresh a few times.<p>Throw a copy of your javascript in the actual gh-pages branch.
This is one my favorite questions on StackOverflow: <a href="http://stackoverflow.com/q/13637892/1273830" rel="nofollow">http://stackoverflow.com/q/13637892/1273830</a>
RGBaster.js looks to be the underlying library used by the plugin to extract the colors, its written by the same developer (briangonzalez):<p><a href="https://github.com/briangonzalez/rgbaster.js" rel="nofollow">https://github.com/briangonzalez/rgbaster.js</a>
It seems like the problem with it not working very time is Github. I get a 503 on this URL every other time that I load it: <a href="http://rawgithub.com/briangonzalez/jquery.adaptive-backgrounds.js/master/src/jquery.adaptive-background.js" rel="nofollow">http://rawgithub.com/briangonzalez/jquery.adaptive-backgroun...</a>
It wasn't working for me and I got the following error "Uncaught IndexSizeError: Index or size was negative, or greater than the allowed value.". However it worked in incognito mode, I could reproduce the problem by enabling Disconnect in incognito mode. If you are having troubles try using incognito mode.
Clever. How does it actually extract the dominant color? What kind of mathematics involved in this kind of stuff? From an architect point of view, does it make sense to do this on the client side?