per fare il resize uso questo script :
Codice PHP:

$maxx 
$_GET["maxx"];
$maxy $_GET["maxy"];
$source_image_URL $_GET["src"];
$source_image imagecreatefromjpeg($source_image_URL);
list(
$width$height) = getimagesize($source_image_URL);
$percent1 $width $maxx;
$percent2 $height $maxy;
$percent max($percent1,$percent2);
$new_eight round($height /$percent);
$new_width round($width /$percent);
$dest_image imagecreatetruecolor($new_width$new_eight);
imagecopyresampled ($dest_image$source_image0000$new_width$new_eight$width$height);
header("Content-type: image/jpeg");
imagejpeg($dest_image);
imagedestroy($dest_image);
imagedestroy($source_image); 
dopo aver smadonnato perchè in locale funziona perfettamente e caricato su aruba non va una bega, ho trovato che l'hosting windows di aruba non supporta le librerie gd2

come posso modificare lo script per farlo andare senza le librerie gd2?

un grazie in anticipo a chi mi può dare una mano