you can just set <img src="" width="350"> but each user will be downloading the full image = slow & more bandwidth
the following code will thumbnail the image
PHP Code:
function resize($width, $image, $photoFolder, $thumbFolder) {
$size = getimagesize("$photoFolder/$image");
$length = ($size[1] * round($width / $size[0] * 100)) / 100;
if ($length > $width) { $length = $width; $width = ($size[0] * round($length / $size[1] * 100)) / 100; }
$source = imagecreatefromjpeg("$photoFolder/$image");
$destination = imagecreatetruecolor($width, $length);
imagecopyresampled($destination, $source, 0, 0, 0, 0, $width, $length, $size[0], $size[1]);
imagejpeg($destination, "$thumbFolder/$image", 75);
}
ryan