Ciao.
Così funziona il tuo codice mi
dava variabili non definite c'era un typo.
Quando hai dei problemi con le gd
devi togliere
header('content-type: image/jpeg');imagejpeg($thumb);
ImageDestroy($thumb);
per il debug.
Codice PHP:
$filename="images/large.jpg";
header('content-type: image/jpeg');
list($width,$height) = getimagesize($filename);
$newwidth= 92;
$newheigth= 92;
$thumb = imagecreate($newwidth, $newheigth);
$source= imagecreatefromjpeg($filename);
imagecopyresized($thumb,$source,0,0,0,0, $newwidth, $newheigth, $width, $height);
imagejpeg($thumb);
ImageDestroy($thumb);