K, am creating an image from a user inputted text string. It all works fine, the image is outut, but with a preset width and height, I want the image to be created the same width as the text, so if the text inputted is really long, the image should grow with it, and if it is really short - same goes. I searched and searched for tuts, but couldn't find any. Any help will of course be appreciated.
Functions like these: http://uk2.php.net/manual/en/function.imagettfbbox.php & http://uk2.php.net/manual/en/function.imagettftext.php Will give you the dimensions of how much space your text will take up. Use it wisely (for example, have two images handles: one to test write the text, and see how much space it will take up, and the second to make an image big enough so it will fit the text Rep appreciated. Good luck, Jay