Redimensionnement image - PHP - Programmation
Marsh Posté le 26-03-2005 à 00:57:30
J'aimerais redimesionner des images par php mais j'ai qq petits problemes. Voici mon code : $image = $_FILES['fichier']['tmp_name']; $image_name = $_FILES['fichier']['name']; $image_name = strtr($image_name, "ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ", "aaaaaaaaaaaaooooooooooooeeeeeeeecciiiiiiiiuuuuuuuuynn" ); $image_name=str_replace(" ","_",$image_name); imagecopyresampled('$image',"photos/$image_name",0,0,0,0,350,262,imagesx($image),imagesy($image); Merci d'avance !! ;-)
Make sure you enter the(*)required information where indicate.HTML code is not allowed
Marsh Posté le 26-03-2005 à 00:57:30
J'aimerais redimesionner des images par php mais j'ai qq petits problemes. Voici mon code :
$image = $_FILES['fichier']['tmp_name'];
$image_name = $_FILES['fichier']['name'];
$image_name = strtr($image_name, "ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ", "aaaaaaaaaaaaooooooooooooeeeeeeeecciiiiiiiiuuuuuuuuynn" );
$image_name=str_replace(" ","_",$image_name);
imagecopyresampled('$image',"photos/$image_name",0,0,0,0,350,262,imagesx($image),imagesy($image);
Merci d'avance !! ;-)