Image generator script ... any ideas


#1

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


#2

Similar to this : http://www.hetemeel.com/einsteinform.php


#3

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/


#4
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


#5

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?


#6

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


#7

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


#8

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


#9

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.


#10

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.


#11

Ok mate cheers. Bugger only early here ( I hate time differences )

Heres a scribble of what I am after. All styling etc we can do.


#12

I know the guys at http://shareyourlove.com/ spent months working on their image generator. That was a while ago now though.


#13
dtbaker said

I know the guys at http://shareyourlove.com/ spent months working on their image generator. That was a while ago now though.

Yep that is kinda what I am after. Just asking on Stackoverflow. If I get a response, and not hurled into Geek Oblivion will share the code. Its only for something really very very basic. Thanks Dave.

p.s. did u get my email regarding the Analytics ? I reposted last week >> updated here


#14

Nearly dunnit :slight_smile:


#15
SportTipsWorld said

Nearly dunnit :slight_smile:

Did you ever get this going? I’m interested in a similar functionality… basically I want a text input on the site where a user can enter a string of text which will be output as a jpg that they can then save and upload to their social media profiles.

Any help or insight you can share would be greatly appreciated.


#16
adeckard said
SportTipsWorld said

Nearly dunnit :slight_smile:

Did you ever get this going? I’m interested in a similar functionality… basically I want a text input on the site where a user can enter a string of text which will be output as a jpg that they can then save and upload to their social media profiles.

Any help or insight you can share would be greatly appreciated.

Yes we did it ourselves in the end. It isnt that straightforward. But you use php to do it


#17

Is there anywhere to buy this script? :smiley: