I have this simple code that I've found in the php manuel to resize image. I work great, but if the image is too big, script crash and wont resize the image. I have set a limit to 1280x1024 since all that is bigger than this crash. I don't know if it's the image file size in kb or it's dimension, but what can I do? [code] // Get new sizes for thumb list($width, $height) = getimagesize($prod_img); $newwidth = "200"; $newheight = "150"; // Load $thumb = imagecreatetruecolor($newwidth, $newheight); $source = imagecreatefromjpeg($prod_img); // Resize imagecopyresampled($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height); // Output imagejpeg($thumb, $prod_img_thumb); [/code]