I am using the script below to create a jpeg from an existing one, with White text overlaid.
The jpeg comes up in the page, with the text overlaid, however, the text is in a blue color and is illegible.
I have tried changing the RGB values, tried $black, etc. with no change to the text colors.
example : http://www.works4web.com/sites/darkstardesign/index.php
<?
// header
Header("Content-Type: image/jpg");
// set up image and colours
$im = ImageCreateFromJpeg("button.jpg");
$black = ImageColorAllocate($im, 0, 0, 0);
$white = ImageColorAllocate($im, 255, 255, 255);
// write string
ImageString($im, 3, 36, 3, $text, $white);
// output to browser
ImageJpeg($im);
?>
Any ideas?
Thanks
David W.