Hop, redimensionnement.. voici:
L´upload se fait à partir d´une image stockée sur le net (de la forme
http://....jpg)
$dir = "image/";
$fichier_name = "image.jpg";
$source = imagecreatefromjpeg($img);
$destination = imagecreatetruecolor(50, 50);
$largeur_source = imagesx($source);
$hauteur_source = imagesy($source);
$largeur_destination = imagesx($destination);
$hauteur_destination = imagesy($destination);
imagecopyresampled($destination, $source, 0, 0, 0, 0, $largeur_destination, $hauteur_destination, $largeur_source, $hauteur_source);
$noir = imagecolorallocate($destination, 0, 0, 0);
ImageRectangle ($destination, 0, 0, 49, 49, $noir);
imagejpeg($destination, ´image/logo´.$fichier_name);