How to upload photos

 

  1. Suppose that all the photos you need to upload is located at c:\photos
  2. Download and install irfanview from http://www.irfanview.com if do not already have it. Download(right click and save as) the two irfanview html template file frame.html and thumbnails.html, copy them to c:\program files\irfanview\html. This step is not essential, but we made some changes to the original template file to better suit our website.

 

Convert the photos into relatively small (around 640x480) size for web display by following the steps below:

 

  1. Start irfanview, click menu File -> Batch Conversion/Rename, add all the photos under c:\photos. Specify an output directory on the right middle section. Let¡¯s assume the converted images are save at c:\temp4.
  2. At the right bottom corner, check ¡°Use Advanced Options¡± and then click ¡°Set Advanced Options¡±, and then on the new windows, click ¡°RESIZE¡±.
  3. Click OK and you are back to the last window, click ¡°Start¡± on the top left corner.

 

Make photo thumbnails:

 

  1. click menu File -> Thumbnails
  2. Open c:\temp4 ( the newly converted images)
  3. Click menu Options -> Set Thumbnail Options to set border color, thumbnail sizes, etc. I found 200x200 very nice.
  4. Once you are satisfied with the looking, save it to html by clicking menu Options->Select All, and then clicking menu File -> Saved selected thumbs as HTML file. A window will open, and you are allowed to choose the page title, output directory, etc. Then you click ¡°Export¡±. This will write what you see as a HTML page. Let¡¯s suppose your exported to c:\temp5

 

Upload images

 

  1. Upload c:\temp5 to the ftp server. Rename the directory name to something meaningful.
  2. Update photos.php to add a link to the newly uploaded images.

 

You are done!