Advanced "advanced search"
limpduck
Joined: 2007-04-26
Posts: 2 |
Posted: Thu, 2007-04-26 14:12 |
Hi, im looking into adding extra options to the advance search to something similar to what is here: http://www.fractalus.com/gallery/search/? ( pref something that works in both IE and Firefox :D ) mainly the "search by color" however having a landscape/portrait would be handy. Are there any modules about that all-ready do this? Or is something that is likely to be implemented within the next few releases? TIA |
|
Posts: 27300
Dave,
That is very interesting. There is no way to search for color automatically now, and I have not seen any development or SoC ( http://gallery.menalto.com/summer_of_code/2007/ideas ) project like that. It would be interesting for a next years project.
I don't know if it is a automatic color search or not. Do you know if that site is actually searching for colors in the image automatically?
We do have the tag module http://codex.gallery2.org/Gallery2:Modules:tags that allows for searching of taged items. You would have to add tags for each item. Perhaps that would work in the interim?
I would be interesting if you could find some existing code that does the color search ( if it is done automatically ). I am sure it could be done with some of the graphic toolkits.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 2
The GD php libary can take the rgb value of any pixel in an image so i guess thats how they do it. more info here: http://php.net/gd
also there are allready function that can take the average colour of the image as seen here: http://www.php.net/manual/en/function.imagecolorat.php
TBH ive not actually looked at the gallery code yet, but using some of the examples on the PHP site i have a working copy of how to get the average colour from an image. And it does seem to work quite well.
I WIll take a look at admin stuff today.