How to upload photos
- Suppose that all the
photos you need to upload is located at c:\photos
- 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:
- 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.
- At the right bottom
corner, check ¡°Use Advanced Options¡± and then click ¡°Set Advanced Options¡±,
and then on the new windows, click ¡°RESIZE¡±.
- Click OK and you are back
to the last window, click ¡°Start¡± on the top left corner.
Make
photo thumbnails:
- click menu File -> Thumbnails
- Open c:\temp4 ( the newly
converted images)
- Click menu Options ->
Set Thumbnail Options to set border color, thumbnail sizes, etc. I found
200x200 very nice.
- 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
- Upload c:\temp5 to the ftp
server. Rename the directory name to something meaningful.
- Update photos.php to add a
link to the newly uploaded images.
You
are done!