Back to DFS's Workshop Page
Back to Agenda Page


Project: Creating a Picture Website

Nowadays, more and more people want to publish their photographs on the web. This project will result in a set of scripts which will greatly automate and facilitate the process of setting up such a site.

A reasonable quality photo taken with current technology is usually stored in JPEG format and is about 600KB in size. A browser can be sent one of these picture files and instructed to display a thumbnail version of it using the height and width attributes of the img tag -- this thumbnail could then be clicked to see the original, full-sized version. However, if 50 pictures are to be handled in this way, 30Meg of data would have to be downloaded to create a page with the thumbnails. It would be much more economical with regard to bandwidth if thumbnails (of about 3KB each) were created and downloaded after which the viewer of the page could select just the picture(s) desired for viewing.

This project consists of two parts: (1) Creation of the thumbnails and (2) Inputting/editing of picture information and creation of a portable index.html file. The site map below shows the organization of linkage of the scripts to be written. The "Brief Description" links take you to general descriptions in this file, while the "Problem" links take you to step-by-step instructions on how to solve the problem posed by that particular script.

OrganizingPics.html              Brief Description
|
\---pickpicdir.php               Brief Description Problem
|   |
|   \---makethumbnails.php       Brief Description Problem
|       |
|       \---showthumbnails.php   Brief Description Problem
|                            |
\---pickeditpicdir.php       |   Brief Description
    |                       /
    \---editpicinfo.php ---/     Brief Description Problem
        |
        \---createindex.php      Brief Description Problem

Your scripts are to do the following.

To see how this could work, view this possible solution.


© 2005 DFStermole
Created 3 Dec 05
Last Modified 6 Dec 05