Gradify turns the most prominent colors in an image into a CSS gradient
gradifycss.com
gradifycss.com
http://www.instructables.com/id/Gradients-in-MIcrosoft-Paint...
https://m.flickr.com/#/photos/lightofthewild/5611692322/
The left margin is broken on Chrome on iOS. http://m.imgur.com/94fzJrc
The scrolling behaviour make the page impossible to use. The scrolling, and I say this as politely as I can, is fucking horrible and makes me want to smash my phone to little pieces.
Sorry for the negative tone. The actual thing looks cool. It'd be nice to see these gradients being used more often.
Wow, you're quite right - there's no attribution on any of the photos. Also, since they're re-hosted onto tumblr it's hard to tell where they came from.
It's possible that the author may have taken all of the photos themself, but unlikely given the example which you've pointed out. It's also possible that the author has sought private permission to use the photos, but you'd probably expect some attribution if that were the case.
Progressive JPEG with a blur filter depending on how much has loaded yet?
That would be the best solution, probably.
Found a bug - it doesn't follow the "orientation" property of the image, resulting in photos and gradients that are rotated.
I don't do Python myself, but using PerlMagick, the fix is $magick->AutoOrient();
window.addEventListener("scroll", function(ev) { ev.stopPropagation(); }, true);
Fix the scroll highjacking please.
The algorithm looks to be breaking the image into the 4 quadrants and finding the dominant color in each quadrant (eliminating any shades that are too gray). e.g. to get the color for the left-to-right gradient, it finds the most dominant color on the right of the image.
maybe it would be better to weight pixels by the energy density of the image region so that backgrounds (sky, walls) don't dominate the resultant colors over the (usually more significant) foreground/detailed objects
https://github.com/fraser-hemp/gradify/blob/master/gradify.p...