Does any one know of a way to add some text, say "Hello World!", to an existing image that will act as the background to the new dynamically generated image
Cheers, --Chris
gd is what you want
www.php.net/gd
imagepstext?
check these articles:
http://phpbuilder.com/columns/index.php3?cat=2&subcat=17
Cheers mate, I managed to get it sorted. Very simple in the end 🙂
<?php header ("Content-type: image/png"); $im = imagecreatefrompng ("bg.png"); $txt = ImageColorAllocate ($im, 0, 0, 0); ImageString($im, 5, 5, 2, "w00t", $txt); imagepng($im); ?>