J'utilise le code suivant trouvé sur un autre site :
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
22
23
24
 
<?php
// Fichier et nouvelle taille
$filename = 'test.jpg';
$percent = 0.5;
 
// Content type
header('Content-type: image/jpeg');
 
// Calcul des nouvelles dimensions
list($width, $height) = getimagesize($filename);
$newwidth = $width * $percent;
$newheight = $height * $percent;
 
// chargement
$thumb = imagecreatetruecolor($newwidth, $newheight);
$source = imagecreatefromjpeg($filename);
 
// Redimensionnement
imagecopyresized($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
 
// Affichage
imagejpeg($thumb);
?>
Il ya un bug au niveau de l'affichage, car c'est une très longue suite de caractère de ce style qui apparaît

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\diplome 2006\arch\structure\head.php:8) in C:\Program Files\Apache Group\Apache2\htdocs\diplome 2006\pages\Images\detailsImages.php on line 48
ÿØÿà

Pouvez-vous m'aider à trouver le problème?

merci