Thanks Weedpacket. I just went through it and here's the script I have so far. Unfortunately it doesn't seem to produce the image, instead it just shows me the url of the script in the browser...
<?
//Get the type and property id then resize the photo.
$type = mysql_real_escape_string($_GET['type']);
$id = mysql_real_escape_string($_GET['id']);
$path = mysql_real_escape_string($_GET['path']);
if(isset($type) AND isset($id)){
if($type == "property"){
$size = getimagesize($path);
$image = imagecreatefromjpeg($path);
$origWidth = $size[0];
$origHeight = $size[1];
$newWidth = 210;
$newHeight = 158;
$image_resized = imagecreatetruecolor($newWidth, $newHeight);
imagecopyresized($image_resized, $image, 0, 0, 0, 0, $newWidth, $newHeight, $origWidth, $origHeight);
header("Content-type: image/jpeg");
imagejpeg($image_resized);
}
}
?>