[ImageMagick] Header envoyé lors de la création d'une image
Bonjour à tous,
J'utilise un script trés basic pour créer une image gif. Pourtant ça ne marche pas et j'ai le message d'erreur suivant:
Code:
Warning: Cannot modify header information - headers already sent by (output started at /var/www/free.fr/9/9/khalid.khalifa/gif.php:1) in /var/www/free.fr/9/9/khalid.khalifa/gif.php on line 2
C'est un message trés connu et la solution peut être évidente. Seulement dans mon cas rien de cela n'est vrai. Voici mon code:
Code:
1 2 3 4 5 6 7 8 9
| <?
header("Content-Type: image/gif");
@$image = imagecreatetruecolor(160,100) or die("err imagecreate");
@$fond = imagecolorallocate($image,0xEF,0xF2,0xFB) or die("err fond");
@$noir = imagecolorallocate($image,0x01,0x10,0x10) or die("err noir");
@imagefill($image,0,0,$fond) or die("err imagefill");
@imagefilledpolygon($image,array(80,15,45,85,125,85),3,$noir) or die("err imagepolygon");
@imagegif($image) or die("err image gif");
?> |
Il n'y a rien avant rien aprés, ni ligne vide ni espace.
Pour infos j'utilise free.fr comme hébergeur et je ne sais pas si qlq'un a déjà fait marcher un script de traitement d'images sur ce type d'hébergeur.
Toute idée, suggestion ou infos est la bienvenue.
KLiFF.