04-04-2009, 05:08 PM
|
#1 (permalink)
|
|
The Visitor
Join Date: Apr 2009
Location: Colorado
Posts: 3
Thanks: 0
|
PHP function for color matching a photo
Hey, folks. Very new to the site and PHP. Learned a lot already about randomizing images for background pics in CSS (i.e. random css files) and creating reflections at the bottom of an image. Great stuff. This site has been a huge help.
What I'm looking to do next is somehow analyze the colors in a particular image to then set appropriate background or text colors to match the photo. Get what I mean? I.E. if one photo has a winter-esque landscape, the colors matched to it might be shades of white, blue and grey. Another photo of a sunset over a lush valley would have much different color shades.
I'm looking for either a photo-analyzer program of some sorts or even better, something in PHP that would analyze the randomly selected photo and set background and text colors accordingly. Any thoughts on this?
Thanks.
-C.
|
|
|
|