I'm trying to make an image similar to one of these: http://www.danasoft.com/vipersig.jpg
Not really content wise (displaying IP addresses and headers), but more so a PHP image displayed in a PNG format (so I can use it on websites, within BB image tags).
I know how to create a dynamic image, but that's only when you visit the PHP pages. Currently using this if it's matters:
$image = imagecreate(200, 60);
$text_color = imagecolorallocate($image, 255, 255, 0);
header("Content-type: image/png");
imagestring($image, 4, 40, 30, "hello", $text_color);
imagepng($image);
imagecolordeallocate($text_color);
imagedestroy($image);
Any thoughts on how this could be achieved?
A few more examples of what I'm looking for are: http://draynor.net/signatures
Edit: most comments are about converting from PNG to PHP, I want to convert from PHP to PNG, just to clear it up.