Dominant Colors for Lazy-Loading Images

Finding the dominant colors of an image requires clustering of points in three-dimensional space. I initially planned to indulge in clustering algorithms and write my own k-means clustering in JavaScript, but after installing GraphicsMagick for decoding image files of various formats on the server I decided to put this plan off to another day and simply use the color quantization of GraphicsMagick. (more…)


Transform your 2D designs into glossy 3D mockups in seconds using Photoshop.

Download Free