]Bonjour,
Je ne comprend pas le pourquoi de cette erreur:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 <br /> <b>Warning</b>: getimagesize() expects parameter 1 to be string, resource given in <b>C:\wamp\www\ESSAIS\TMPonxux3.php</b> on line <b>9</b><br />Quelqu'un pourrait il m'aider
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 <?php header("Content-type: image/png"); $img = imagecreatefrompng("bouton base.png"); // Calcul des nouvelles dimensions list($width, $height) = getimagesize($img);>>>>>LA $new_width = $width * 0.5; $new_height = $height * 0.5; echo $width; // Redimensionnement $image_p = imagecreatetruecolor($new_width, $new_height); imagecopyresampled($image_p, $image, 0, 0, 0, 0, $new_width, $new_height, $width, $height); imagepng($img); imagedestroy($img); ?>
Merci
Partager