Hi guys,
I'm trying to write ontop of a transparant gif -- and keep the transparancy.
I can actually do it really easy, but i cannot get the text to change colour.
My code is basicly this:
$im = imagecreatefromgif ("back.gif");
$back_ground = imagecolorallocate ($im, 207, 207, 207);
$white = imagecolorallocate ($im, 255, 255, 255);
$black = imagecolorallocate ($im, 0, 0, 0);
imagettftext($im, 14, 0, 45, 67, $white, "arial.ttf", "Hello");
imagegif ($im,"preview.gif");
imagedestroy ($im);
The font file is in the right place, but nothing i can do will let me change the colour of the word "Hello".
If i do the same with a gif that does not have a transparant background, it works ok.
Is it somthing to do with the settings when exporting a gif with adobe photoshop?
Any help on doing this would be amazing!
Cheers all.