Nicholas
2010-09-12 14:32:12 UTC
$smaller = imagecreatetruecolor(300, 250);
$original = imagecreatefromjpeg("../images/tmp/$t.jpg");
list($width, $height) = getimagesize("../images/tmp/$t.jpg");
imagecopyresized($smaller, $original, 0, 0, 0, 0, 300, 250, $width, $height);
imagejpeg($smaller, '../images/properties/' . time() . $_FILES['picture']['name'], 100);
but I get an error saying that the image I am trying to resize is too large. How make this resizing work?
(Yahoo Answers cut off one of the lines and added ... for some reason)