Hello,
now few days I made a script for a pool, which must generate teh images dinamicly. So I can say is not hard to play with images 🙂
I taked this code from a php book, I think this is what you really need :
<?php
Header("Content-type: image/gif");
$string=implode($argv," ");
$im = imagecreatefromgif("images/button1.gif");
$orange = ImageColorAllocate($im, 220, 210, 60);
$px = (imagesx($im)-7.5*strlen($string))/2;
ImageString($im,3,$px,9,$string,$orange);
ImageGif($im);
ImageDestroy($im);
?>
This example would be called from a page with a tag like: <img src="button.php3?text"> The above
button.php3 script then takes this "text" string an overlays it on top of a base image which in this case is
"images/button1.gif" and outputs the resulting image. This is a very convenient way to avoid having to draw
new button images every time you want to change the text of a button. With this method they are
dynamically generated.
hope this helps you
see ya