Add Advanced Search Criteria by Color Add Advanced Search Criteria by Color
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Add Advanced Search Criteria by Color

Started by JeWelz, October 28, 2004, 10:57:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JeWelz

It would be really neat to be able to have an option to search the photos by the average color in the photo.

Something like this:

http://istockpro.com/file_search.php?action=color&color=9,12,9

Thanks!
Julie


Tarique Sani

I have been trying to figure out the algo for capturing,  calculatiing and storing the color information of a picture into the the database (this has to be done automatically - manual would sux) - once that is in place I will gladly add this much needed and WOW factor feature
SANIsoft PHP applications for E Biz

JeWelz

#2

http://us4.php.net/manual/en/function.imagecolorat.php

      $rgb = ImageColorAt($dest, 0, 0);
      $r = ($rgb >> 16) & 0xFF;
      $g = ($rgb >> 8) & 0xFF;
      $b = $rgb & 0xFF;


Something like this... if I figure it out I'll share it...


Aditya Mooley

--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter