The Picture Database


Your task is to make a database of pictures.  Users can log in.  Users who have the correct permissions can then add pictures to the database.  They add pictures by telling the database the URL of the picture to be added.  The database then goes and gets the picture, copying it into the database itself.  After the picture is added, the user can modify the attributes of the picture.  Here they can add keywords to describe the picture, and add authorship information.

This database has a search feature.  A user can search the database and find all pictures of a given size matching given keywords.

This database has delete screen, where users who have logged in with the appropriate permissions can delete pictures from the database.

Other things that get one points:
How to convert an image of one size to an image of another:

             if (its_a_JPG_file) {
                    $command = "djpeg < $file | pnmscale -ysize $HEIGHT | cjpeg > $thumbfile";
             }
             else {
                    $command = "giftopnm < $file | pnmscale -ysize $HEIGHT | cjpeg > $thumbfile";
             }
             #print "$command\n";
             system($command);


This project is out of 68 points.  In real life, one can get up to 90 points.

This program counts for as much as TWO standard programs.  This program is a BIG DEAL IN THE GRADE BOOK!



The Add-A-Picture Screen (12 points)


The Edit-A-Picture Screen (12 points)


The Search-For-A-Picture Screen (10 or 20 points)


The Login Screen (12 points)


The Add-A-User Page (3 points)

The Delete-A-User Page (3 points)

The Random-Picture Page (6 points)