php - Get dominant colour from image to use as a background whilst image pre-loads -


I am trying to recreate the effects used to preload images at this time. When you go to page, you will see that each image has its own color background which is selected from the pre-loading image. How would I go about making this effect?

Any jsfiddle examples of possible solutions will be highly appreciated

Interesting ideas.

It may not be what you want, but PHPthumb creates a thumbnail of an image on the fly. A very small thumbnail which is blurred will only whiteness, background or color tone of the image.

Obviously, to remove potential performance issues, the color images will need to be cached.

ImageMagick will need to do image processing on the server, with phpthumb.

Other PHP image processing options are documents


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -