you can use this php code for image resize...
name this as imgresize.php
<?php
$height= 50;
$width= 50;
// Content type
header('Content-type: image/jpeg');
if(!$filename)
$filename="./images/nopic.jpg";
// Get new dimensions
list($width_orig, $height_orig) = getimagesize($filename);
if ($width && ($width_orig < $height_orig)) {
$width = ($height / $height_orig) * $width_orig;
} else {
$height = ($width / $width_orig) * $height_orig;
}
// Resample
$image_p = imagecreatetruecolor($width, $height);
$image = imagecreatefromjpeg($filename);
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig);
// Output
imagejpeg($image_p, null, 100);
ImageDestroy ($image_p);
?>
$img = xxx; /// change xxx to img name
echo "<img src=\"imgresize.php?filename=$img\" alt=\"$$img\"/>";
hope this will help you mate!