Hey guys!
Sort of an interesting topic-title, wouldn't you say? Well then, let me explain.
We've got a huge upcoming lanparty and I wanted to make a signature for the clan. That's all good an fun, until I hit this little snag.
The fact of the matter is, I wanted to insert something like this.
1. A GET variable, like ?text=Still_{days}_to_go
2. Converted and replaced to "Still 8 days to go".
3. Create background image from a remote location
4. Create the string
5. Merge the images and position it on the pixels using the GET variable again.
Well, I can't even get past the problem with making a sort of cool string on a transparent background. So, PNG. The background image is JPEG and I want a PNG string to be outputted onto that image.
This is what I had so far.
PHP Code:
/* Define the source and get the file size (width+height) */
$imageSource = 'http://markernst.com/ZeldaSig.jpg';
$imageSize = getimagesize( $imageSource );
$imageWidth = $imageSize[0];
$imageHeight = $imageSize[1];
/* Make an image */
$imageCreate = imagecreatefromjpeg( $imageSource );
$textString = stripslashes( htmlentities( $_GET['text'] ) );
/* $textSize = getimagesize( $textString );
$textWidth = $textSize[0];
$textHeight = $textSize[1]; */
$textLength = strlen($textString)*7+9;
$textImage = imagecreate ( $textLength, 24 );
$colorOne = imagecolorallocate( $textImage, 0, 0, 0);
$colorTwo = imagecolorallocate( $textImage, 255, 255, 255);
/* Set the Output, no echo's above! */
header("Content-type: image/jpeg");
/* Echo out the file */
//imagestring($textImage, 3, 5, 5, $textString, $colorTwo);
//imagepng($textImage);
imagejpeg($imageCreate, '', 100);
imagedestroy($imageCreate);
Help?

(oh yeah, first off is creating the image, haven't made the bbcode/get str_replace function yet.)
/edit
The working project.
http://www.markernst.eu/countdown.php