muhammedaksam adlı üyeden alıntı: mesajı görüntüle
ImageMagick ya da GD iş görebilir.

Örnek olarak;

function resize_image($file, $w, $h, $crop=FALSE) {
    list($width, $height) = getimagesize($file);
    $r = $width / $height;
    if ($crop) {
        if ($width > $height) {
            $width = ceil($width-($width*abs($r-$w/$h)));
        } else {
            $height = ceil($height-($height*abs($r-$w/$h)));
        }
        $newwidth = $w;
        $newheight = $h;
    } else {
        if ($w/$h > $r) {
            $newwidth = $h*$r;
            $newheight = $h;
        } else {
            $newheight = $w/$r;
            $newwidth = $w;
        }
    }
    $src = imagecreatefromjpeg($file);
    $dst = imagecreatetruecolor($newwidth, $newheight);
    imagecopyresampled($dst, $src, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);

    return $dst;
}
Fonksiyon kısaca böyle çalışır;

$img = resize_image(‘/path/to/some/image.jpg’, 200, 200);
İlgili fonksiyonları koduna ekleyip son adımda yapabilirsin.

/path/to/some/image.jpg yerine $resimadi yaparak anlık yapabilirsin eğer çıkan sonucu doğru gördüysem öyle olur yani. 200 değerlerini kendine göre düzenlersin.

Teşekkür ederim hocam