We are currently creating our affiliate area and I wanted to make the graphics buttons logos and banners a tad more customized.
Years ago, there was a script, where you could enter text in input field and that text would appear on a graphic you could then share.
Buggered if I can remember what this kind of thing is called.. any ideas.
So example:
You have a base Image, user enters some text in input field. They click generate and the text appears on the image.
They can then download, or use img src code to share. I kind of dont want it where the img path becomes something like… myimage.png?text=hello+world but can cope if thats the case.
Suggestions Please.
asp version: http://www.dotnetcurry.com/ShowArticle.aspx?ID=214
I am really after php version
Similar to this : http://www.hetemeel.com/einsteinform.php
- United Kingdom
- Community Superstar
- Attended a Community Meetup
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Sold between 5 000 and 10 000 dollars
- Has been a member for 2-3 years
- Microlancer Beta Tester
- Bought between 100 and 499 items
- Referred between 10 and 49 users
i think this is what your looking for, http://php.net/manual/en/function.imagettftext.php
this might help you as well; http://www.daftlogic.com/projects-text-to-image.htm , http://terriswallow.com/weblog/2007/writing-text-to-images-with-php/
aaranmcguire said
i think this is what your looking for, http://php.net/manual/en/function.imagettftext.php this might help you as well; http://www.daftlogic.com/projects-text-to-image.htm , http://terriswallow.com/weblog/2007/writing-text-to-images-with-php/
Hi Aaran thanks. Yeah I get the concept, just not how to add client side shiznit. Where they can enter text and it adds it to the image, have looked at TerriSwallows. Will look at the Daftlogic one. Cheers Mate ( oh and yer been reading thru php gd functionality )
Ste
- United Kingdom
- Community Superstar
- Attended a Community Meetup
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Sold between 5 000 and 10 000 dollars
- Has been a member for 2-3 years
- Microlancer Beta Tester
- Bought between 100 and 499 items
- Referred between 10 and 49 users
well image will me make by php so when you post the form it will make a image tag with a url like this.. http://example.com/image.php?text=Hello+World
then the php script will have a $_GET['text'] and then process what needs doing…
is that what you mean?
I suppose lol. But was trying to do it similar to the Einstein link above. So that the image gets stored on the server as a png file . So we dont need to share images like..
myimage.php
or
myimage.png?text=life+sucks lol
More like userpic_123.png and pref’ process and display the image using ajax
You could save your pictures with the imagejpeg function from the GD library
- United Kingdom
- Community Superstar
- Attended a Community Meetup
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Sold between 5 000 and 10 000 dollars
- Has been a member for 2-3 years
- Microlancer Beta Tester
- Bought between 100 and 499 items
- Referred between 10 and 49 users
arr, ok… so i think http://www.php.net/manual/en/function.imagepng.php will help.. the 2nd variable saves it as a file
EDIT : arr, beat to it, but yh, its the same thing just different file format
Fancy knocking up a script and sending it to me. $30 innit for ya.
Last of the big spenders here. If not its cool, will muddle my way thru it.
Essentially, want to be able to add text to various image backgrounds, pre defined. Via same page. Happy to knock up a scribble if it helps.
- United Kingdom
- Community Superstar
- Attended a Community Meetup
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Sold between 5 000 and 10 000 dollars
- Has been a member for 2-3 years
- Microlancer Beta Tester
- Bought between 100 and 499 items
- Referred between 10 and 49 users
I cant do it right now (tired) , but if you have not got it by tomorrow email me (aaran.mcguire@cl.vc) and I will sort it out for you.
