voilà j'ai un formulaire qui télécharge une photo et la mets dans le dossier photo
mais je voudrais aussi qu'il réduise la photo et qu'il la mettte dans le dossier photomin
mon champs de fichier s'appelle foto
j'ai donc mis
copy ($foto,"photo/$ligne.gif");
où $ligne est le numéro de l'id qui correspond à la photoet ça marche
mais quand j'essaye de créer aussi la miniature ça ne fonctionne pas
j'ai mis
list($width, $height) = getimagesize($foto);
$new_width = "120";
$new_height ="90";
$image_p = imagecreatetruecolor($new_width, $new_height);
$image = imagecreatefromjpeg($foto);
imagecopyresampled($image_p, $image, "0", "0","0","0", $new_width, $new_height, $width, $height);
copy ($image_p,"photomin/$ligne.min.gif");
quelqu'un a t il une idée?
merci d'avance