Dominant Average Color of a photo

ChibiPhotographyChibiPhotography Registered Users Posts: 30 Big grins
Do we have a method to find and store the Dominant Average Color and Complementary Dominant Average Color of a photograph?

There is a web site that does this, http://whatsitscolor.com/index.php however, doing this on the fly takes time and I would rather process this in the background and store the colors along with the photo on SM.

While I am at it, do we have any custom field capability with SM?

Doug
Doug Pearson
Chibi Photography
pix.chibiphotography.com

Comments

  • ChibiPhotographyChibiPhotography Registered Users Posts: 30 Big grins
    edited June 7, 2008
    Well, I found a method that gets half of what I wanted done without increasing the processing load on my server.

    It turns out that if you ask for a 1 x 1 version of your picture, the resize algorithm renders the average color of the picture in that one pixel image. With this new image, I can use the automatic repeating feature of a background image on an HTML page to set the background of the page to the average color of the photo.

    I would still prefer to have the color value so I could use it or the Complementary color while rendering things like text or edges; however, since this method does not increase my processor load, I can use it for now.
    Doug Pearson
    Chibi Photography
    pix.chibiphotography.com
Sign In or Register to comment.