kendi kullandığım fonksiyon.
function boyutla2($nresim,$toWidth,$toHeight,$yol){
$boyut = getimagesize($nresim);
$en = $boyut[0];
$boy = $boyut[1];
$new_image = imagecreatetruecolor(80, 80);
$nresim = imagecreatefromjpeg ($nresim);
imagecopyresized($new_image, $nresim, 0, 0, 0, 0, 80, 80, $en, $boy);
imagejpeg($new_image,$yol);
}80x80 kısmını kendine göre değiş