PHP function for color matching a photo
View Single Post
04-05-2009, 07:10 AM
Join Date: Sep 2008
Originally Posted by
I would first of all calculate the color once, and write it to an database - so that you don't need to calculate it with each sitecall. Then I would make an table which holds colors - which harmonize to each other. Of course you should have an color-area -> on the one site.
Well and there you go, when the picture is called the first time - it will calculate its color -> select a fitting from the table you saved.
To OP: watch out what you use this for... if it is something that a user uploads to your site, and then you do this, it will kill your server if many users try it at the same time.
Applications Developer, Interactive Support - Tribune Technology
J2EE Development, Script Tinkering - Develop, Support, and Maintain
View Public Profile
Send a private message to jcorradino
Find More Posts by jcorradino