Suscorch Posted May 5, 2007 Share Posted May 5, 2007 <?php Header("Content-Type: image/gif"); $ign = 'IGN: '.$_GET['ign']; $lvl = 'Level: '.$_GET['lvl']; $job = 'Job: '.$_GET['job']; $wld = 'World: '.$_GET['wld']; $myimage = ImageCreateFromGif('images/signature'.$_GET['image'].'.gif'); $colour = ImageColorAllocate($myimage, 255,0,0); ImageString($myimage, 3, 12, 10, $ign, $colour); ImageString($myimage, 3, 12, 32, $lvl, $colour); ImageString($myimage, 3, 12, 54, $job, $colour); ImageString($myimage, 3, 12, 76, $wld, $colour); ImageGif($myimage); ImageDestroy($myimage); ?> Can anyone tell me please how to stop this code from outputting black text over the image, and start outputting red text, like I told it to? Thank you in advance... I really am at the end of my tether x_X Quote Link to comment https://forums.phpfreaks.com/topic/50083-dynamic-image-text-colour-problem/ Share on other sites More sharing options...
MadTechie Posted May 5, 2007 Share Posted May 5, 2007 try this <?php Header("Content-Type: image/gif"); $ign = 'IGN: '.$_GET['ign']; $lvl = 'Level: '.$_GET['lvl']; $job = 'Job: '.$_GET['job']; $wld = 'World: '.$_GET['wld']; $myimage = ImageCreateFromGif('images/signature'.$_GET['image'].'.gif'); $colour = imagecolorallocate($myimage, 255,0,0); //changed ImageString($myimage, 3, 12, 10, $ign, $colour); ImageString($myimage, 3, 12, 32, $lvl, $colour); ImageString($myimage, 3, 12, 54, $job, $colour); ImageString($myimage, 3, 12, 76, $wld, $colour); ImageGif($myimage); ImageDestroy($myimage); ?> **untested Quote Link to comment https://forums.phpfreaks.com/topic/50083-dynamic-image-text-colour-problem/#findComment-245970 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.