The solution required the GD image library to be installed, not sure if its available for windoze but I use redhat.
the code is:
-------------------image.php----------------------------
<?php
$src_img = ImageCreateFromJPEG($file_name);
/* desired width of the thumbnail */
$picsize = 100;
/* grabs the height and width */
$new_w = imagesx($src_img);
$new_h = imagesy($src_img);
/* calculates aspect ratio */
$aspect_ratio = $new_h / $new_w;
/* sets new size */
$new_w = $picsize;
$new_h = abs($new_w * $aspect_ratio);
//$new_h = 120;
/* creates new image of that size */
$dst_img = ImageCreate($new_w,$new_h);
/* copies resized portion of original image into new image */
imagecopyresized($dst_img,$src_img,0,0,0,0,$new_w,$new_h,imagesx($src_img),imagesy($src_img));
imageJPEG($dst_img);
ImageDestroy($dst_img);
?>
------------------------------------------------------------
from your main page to create a link to the main image but see the thumbnail displayed use this:
<a href=$file_name><img src=\"image.php?file_name=$file_name\" border=0>
get a copy of the gallery files from
see if the code will help you.
By the way no java = no navigation on the site at the moment and it prolly looks alot crap in nutscrape and mozilla. ______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.