merci de votre aide
<br><br>
Photos (Maximum 5 photos) :<br><br>
<div style="float:left; border: 1px solid rgb(202, 215, 228); padding: 4px; background-color: #ffffff; width: 510px; height: 125px; margin-bottom: 20px">
<?php
echo'<IFRAME src="annonce/all-index.php?repdossier='.$pass.'" width="508" height="123" scrolling="auto" frameborder="0" name="alt_index"></IFRAME>';
?>
</div>
plus ceci:$taille = getimagesize("$pic");
$h_i = $taille[1];
$w_i = $taille[0];
if($h_i >$h_max)
{
$convert=$h_max/$h_i;
$h_i=$h_max;
$w_i=ceil($w_i*$convert);
}
if($w_i >$w_max)
{
$convert=$w_max/$w_i;
$w_i=$w_max;
$h_i=ceil($h_i*$convert);
} ;
$largeur = "$w_i";
$hauteur ="$h_i";
header("Content-Type: image/jpeg");
list($width, $height, $type, $attr) = getimagesize("$pic");
if($type == "1")
{
$img_in = imagecreatefromgif($pic);
}
if($type == "2")
{
$img_in = imagecreatefromjpeg($pic);
}
if($type == "3")
{
$img_in = imagecreatefrompng($pic);
}
merci de votre aide