Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Add Advanced Search Criteria by Color  (Read 3732 times)

0 Members and 1 Guest are viewing this topic.

JeWelz

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 25
    • Landman Kids
Add Advanced Search Criteria by Color
« on: October 28, 2004, 10:57:57 pm »

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

Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Re: Add Advanced Search Criteria by Color
« Reply #1 on: October 29, 2004, 08:26:52 am »

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
Logged
SANIsoft PHP applications for E Biz

JeWelz

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 25
    • Landman Kids
Re: Add Advanced Search Criteria by Color
« Reply #2 on: March 31, 2005, 03:28:40 am »


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...

« Last Edit: March 31, 2005, 08:30:31 am by GauGau »
Logged

Aditya Mooley

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 781
    • My Sweet Home
Logged
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.