soit l'image suivante, générée en PHP au format PNG, qu'on appellera image.php :
<?php $width = 100; $px = 5; $height = 100; $py = 5; $im = imagecreatetruecolor ($width, $height); for($y=0; $y<$height; $y+= $py) { for($x=0; $x<$width; $x+= $px) { $c = imagecolorallocate($im, 200-$x, 100+$y, 100+$x-$y); imagefilledrectangle($im, $x, $y, $x+$px, $y+$py, $c); } } header("Content-type: image/png"); imagepng($im); imagedestroy($im); ?>
et bien je ne sais pas pourquoi, mais GetImageSize('./image.php'); ne me retourne rien du tout... quelqu'un aurait un début de réponse ???