Ever hear of this??
Moderator: General Moderators
Ever hear of this??
Hello everyone. This is my first post at the forum. I was wondering if there is a script available for adding text to a graphic. I have a free web buttons website and want to provide the visitor an option of adding some text to his/her choice of button. Maybe they could click on the image and be able to add text? I am a newbie at php scripting and want to learn how to do this stuff! Thanks for everyone's time, Jim
not hard to do with GD lib, checkout tutorials at http://www.hotscripts.com or u might even find a script for it.
Your question is not very specific, so it is hard to give a good/satisfying answer.
A good place to start at is the PHP manuals section about Image functions.
I think you want your users to select an image and then put user customizable text into that image.
It basically boils down to:
- create handle to operate on images via e.g. [php_man]ImageCreateFromJPEG[/php_man]
- allocating colors via [php_man]ImageColorAllocate[/php_man]
- writing text onto the image via [php_man]ImageTTFText[/php_man]
- write the modified image into a file via e.g. [php_man]ImageJPEG[/php_man]
- destroying the handle via [php_man]ImageDestroy[/php_man]
HTH
A good place to start at is the PHP manuals section about Image functions.
I think you want your users to select an image and then put user customizable text into that image.
It basically boils down to:
- create handle to operate on images via e.g. [php_man]ImageCreateFromJPEG[/php_man]
- allocating colors via [php_man]ImageColorAllocate[/php_man]
- writing text onto the image via [php_man]ImageTTFText[/php_man]
- write the modified image into a file via e.g. [php_man]ImageJPEG[/php_man]
- destroying the handle via [php_man]ImageDestroy[/php_man]
HTH
i have made soemthing like that, it loads banners from a folder, user inputs text for the banner and position,color and size of it too, after submit, it putd the text on th location with size and position, but its not quite done yet, if you want it, send me a pm with ur email and i'll send it to ya, then you can make the changes etc.