Image Search Engine
DescriptionAfter collecting several gigs of digital pictures, I decided it was time to add some organization into the chaos. PHP was a good fit for this project because of its dynamic image scaling capabilities.
When I get new pictures, I drop them in a specific directory tree on my web server. A script I run will detect new images automatically and add them to an image database, allowing me to attach attributes to each new picture (Figure 1). The attributes can later be edited if necessary.
When searching for pictures, the terms are parsed and a nice looking SQL statement hits the image database for a result set. The thumbnails are displayed along with some display sizes (Figure 2). The image sizes are generated real-time by the PHP script and added to a cache (it if isn’t there already) at request time. With a simple cache management system (FILO) the hard drive space committed is kept as low as I want.
Linkhttp://www.bball7.com/
|