Color Palette Generator

Conception

Based on an idea from a Photoshop action I created, I designed this PHP script to parse an image, take random samples from it, and generate a color palette. The results are vary from image to image however, certain pictures will return better results. Made over with JavaScript and CSS this proves to be a simple and powerful tool.

Overview

By splitting the image into different sections and sampling from each section, the script will grab an average snapshot of the image and infer a color scheme. This is technique will be used in a future project that will allow you to apply an “image-based theme” to a web site.

Live Site

Highlights

Image Selection Users can select from previously uploaded images, or they upload their own.

User Interaction JavaScript is used to allow for mouse over hex codes, and clickable color code.

Tech Involved

  • PHP
  • CSS
  • XHTML

JM

  1. Articles
  2. Status
  3. Gallery
  4. Links
  5. Portfolio
  6. About
  7. Contact