Fix the scroll highjacking please.
Gradify turns the most prominent colors in an image into a CSS gradient
11–20 of 37 posts
Re: Gradify turns the most prominent colors in an image into a CSS gradient
#12https://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.
Re: Gradify turns the most prominent colors in an image into a CSS gradient
#13window.addEventListener("scroll", function(ev) { ev.stopPropagation(); }, true);
Re: Gradify turns the most prominent colors in an image into a CSS gradient
#14Do you have permissions to use those images? 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 b…
Re: Gradify turns the most prominent colors in an image into a CSS gradient
#15Re: Gradify turns the most prominent colors in an image into a CSS gradient
#16Why don't you just post the 5 or 10 lines of code you're using to create the effect?
https://github.com/fraser-hemp/gradify/blob/master/gradify.p...
Re: Gradify turns the most prominent colors in an image into a CSS gradient
#17Found 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();
Re: Gradify turns the most prominent colors in an image into a CSS gradient
#18Re: Gradify turns the most prominent colors in an image into a CSS gradient
#19Really nice effect - I can see this being used on galleries / profiles, etc. What is with the weird scroll behaviour on this page, though? It will refuse to stay where I put it and keeps jumping to odd snap points after a few seconds. Annoying.
Re: Gradify turns the most prominent colors in an image into a CSS gradient
#20The 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.