RebelSean
Veteran Member
![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif)
![Avatar](images/avatars/supertux.gif)
Microsoft Evangelist
Posts: 2602 Reputation: 59
34 / / ![United States Flag](images/flags/us.png)
Joined: May 2004
Status: Away
|
O.P. RE: Edit a sig for me? Identify a font to?
You win Matty! Thanks alot bro ![:D](images/smilies/msn_grin.gif) . Now to figure out the font for my countdown to be stuck on it.
Does someone want to help me with the code now for my image? The code is for JPEG functions, and I need it to work on GIF.
code: <?
header("Content-type: image/jpeg");
$to_go = mktime(0, 0, 0, 12, 25, 2005) - time();
$days = ceil($to_go / (60 * 60 * 24));
$hours = ($to_go / (60 * 60)) % 24;
$minutes = ($to_go / 60) % 60;
$seconds = $to_go % 60;
$str = $days . " " . ($days == 1 ? "day" : "days") . ", " . $hours . " " . ($hours == 1 ? "hour" : "hours") . ",";
$str2 = $minutes . " " . ($minutes == 1 ? "minute" : "minutes") . " and " . $seconds . " " . ($seconds == 1 ? "second" : "seconds");
$image = ImageCreateFromjpeg("christmas.jpg");
$white = ImageColorAllocate($image, 255, 255, 255);
imagettftext($image, 13, 0, 35, 60, $white, 'SCRIPTBL.TTF', $str);
imagettftext($image, 13, 0, 40, 80, $white, 'SCRIPTBL.TTF', $str2);
imagettftext($image, 11, 0, 115, 100, $white, 'SCRIPTBL.TTF', 'to christmas 2005..');
Imagejpeg($image);
ImageDestroy($image);
?>
|
|