Hi, I'm using a simple image resize php script to resize images. It was working fine but has now stopped working but can't figure out why! The script is: [code]$src = imagecreatefromjpeg($image); $width = imagesx($src); $height = imagesy($src); $x = $w; $y = $h; $dst = imagecreatetruecolor($x,$y); imagecopyresampled($dst,$src,0,0,0,0,$x,$y,$width,$height); header('Content-Type: image/png'); imagepng($dst);[/code] Its saved as scale_img.php and called from another page like so: [code]<img src="scale_img.php?image=images/horses.jpg&w=100&h=100" />[/code] Is there anything wrong with the php code? It looks ok to me. Could changed php settings on the server ( i use third party) affect it working or not? Other php/mysql scripts work fine