pour créer de miniature png j’utilise cette fonction :
Code : Tout sélectionner
elseif ($tableau[2] == 3) {
$img_in = imagecreatefrompng($file);
imagecopyresampled($img_out, $img_in, 0, 0, 0, 0, $new_largeur, $new_hauteur, $tableau[0], $tableau[1]);
header("Content-type: image/png");
imagepng($img_out);
}
existe t'il un moyen d’éviter ce problème ?
Merci