Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
Thread: Question about images
01-10-2010, 02:53 AM #1
Question about images
I was wondering if there was a way to take an image with html, such as
<img src='img.jpg' />
and use php within the same page to take text from a text box and place it on the image, than save it as a new image.
I hope thats not too confusing.
so, user enters text in text box, hits enter, and it writes it to the image using coordinates, then saves the image to a folder or something.
Thanks for anyone who can help.
01-10-2010, 03:46 AM #2
- Join Date
- Jan 2005
- Philadelphia, PA, USA
- Thanked 76 Times in 76 Posts
Sure can, although it requires the GD Image library.
Check this out: http://scriptplayground.com/tutorial...Text-On-Image/
PHP Tip: If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.
Don't forget to save everyone time and mark your thread as Resolved :)
"Also note that it is your responsibility to die() if necessary."
DON'T USE THE MYSQL_ EXTENSION
01-10-2010, 03:58 AM #3
- Join Date
- Dec 2009
- Thanked 58 Times in 58 Posts
You will also need to get the image file, so if you don't know it before hand you'll have to either upload the image from the user or get the url to the file and download it, then apply the text
01-10-2010, 04:12 AM #4
What if I have the image displayed in html? Will this not work?
If not, how?
FWI: this is not for school or any sort of homework. I am developing this for my non profit organization.