Ok here is the code for everyone who is interested.
paypal:
[email protected]
PHP Code:
<?
/***********************************************************************************************
*
* fun.php
*
* You need freetype modules installed and php compiled with --with-freetype-dir=/path/to/freetype
* You need php compiled with GD support
* You need the font: [url]http://66.181.179.74/annifont.ttf[/url]
* You need the blank jpeg: [url]http://66.181.179.74/blank.jpg[/url]
*
* Enjoy!
*
* DynaMite
* UIN# 370820
*
*************************************************************************************************/
if(isset($text)) {
Header("Content-type: image/jpeg");
$imagepath = "/full/path/to/blank.jpg";
$pic = imagecreatefromjpeg($imagepath);
$newpic = imagecolorclosest ($pic, 62, 44, 66);
imagettftext ($pic, 15, -5, 150, 280, $newpic, "/full/path/to/annifont.ttf", $text);
imagejpeg($pic,'',100);
}
?>
<html>
<head>
<title>
GFY FUN!
</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="640" cellspacing="0" cellpadding="8" id="">
<tr>
<td width="480" bgcolor="#FFFFFF" valign="top">
<p><IMG height=337 src="blank.jpg" width=451><br />
<br />
<form action="fun.php">
Name: <input type="textfield" width=10 name=text
value="fill in here"> and press enter </form>
</p>
</td>
</tr>
</table>
</body>
</html>
DynaMite