Log in

View Full Version : Search Function for Images..poss ITPC



manc
08-13-2008, 10:27 AM
Hi
I am looking for a search function for my website to display certain images.

For example if I take a photos of race cars who have number on say 1-99.
When editing the images I tag all the images with IPTC data for each car number.
I then want the user to be able to search for example on this ITPC date (ie car number), the resulting page should then display only the photos of the car with the correct IPTC search result. A cart function for various print sizes would be useful too.

Is this possible?
Many thanks

Ian

Medyman
08-13-2008, 12:28 PM
It's possible, but certainly not easy. PHP is able to parse IPTC data. So, accessing the data isn't difficult. The problems you might have is the search function itself.

The workflow that I might suggest is to have the IPTC data parsed when you upload an image. The keywords could be saved to a database at this point. Then, you can use any old PHP/MySQL search script you can Google up.

See the PHP manual for more info to iptcparse (http://us.php.net/iptcparse).