5492 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says

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

5492 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says
973 posts
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 100+ items on Envato Market
+5 more
aaranmcguire says
5492 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says

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

973 posts
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 100+ items on Envato Market
+5 more
aaranmcguire says

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?

5492 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says

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

499 posts
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in Canada
+2 more
TutelageSystems says

You could save your pictures with the imagejpeg function from the GD library

973 posts
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 100+ items on Envato Market
+5 more
aaranmcguire says

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

5492 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says

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.

973 posts
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 100+ items on Envato Market
+5 more
aaranmcguire says

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.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by