Hi forum,
Below is a sample code that creates a "white" gif image. I want to know... why the background result color is FEFCFE intead of white (FFFFFF)? When I use imagecreate instead of imagecreatetruecolor, the white color is OK.
Thanks in advance!
<?php
$file= "image.gif";
$img = imagecreatetruecolor(100,20);
$white= ImageColorAllocate($img, 255, 255, 255);
imagefilledrectangle($img, 0, 0, 100, 20, $white);
imagegif($img,$file);
imagedestroy($im);
?>
<img src="image.gif" />