Shoutbox

Image Text - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Image Text (/showthread.php?tid=29705)

Image Text by dom. on 08-09-2004 at 05:46 PM

does anyone know of a script that i can upload which, when run will produce an image of text..? argh.. can't explain, example:

http://domain.com/script.php?text=hello will make an image that says hello

the width of the image would have to change depending on the length of the text..

for example:
[Image: xcampkill.png]

that image's width adjusts depending on the song name..

i've found one script, but that used a text box etc and you had to manually specify the height and width of the image.. not good.

anyone?

(this post is horribly layed out and not very well worded, sorry.. )


RE: Image Text by Dempsey on 08-09-2004 at 07:10 PM

well surely you could just modify the script and calculate the width by counting the length of the text


RE: Image Text by dom. on 08-09-2004 at 09:41 PM

yeah thats what i thought, but i couldnt... because i don't know how..


RE: Image Text by RaceProUK on 08-09-2004 at 10:17 PM

If you can access the font metrics, then you can use that to calculate the length.


RE: Image Text by dom. on 08-09-2004 at 10:19 PM

thanks, but i havnt a clue on how to modify it.. :(

thats why i was asking if someone knew of a ready made script..


RE: Image Text by Menthix on 08-10-2004 at 05:22 AM

I don't think that script you have is very big? Maybe you can paste it here and if anybody feels like helping he/she could have a look and tell you what to change.

If you paste PHP code on the forum, then please paste it between [co de] and [/co de] but then without the space in between.


RE: Image Text by Varish on 08-10-2004 at 05:28 AM

There's this script made by saralk...(its designed for emails tho)
http://www.fw6.net/emailpic/email.php?email=

Hope this is what ur talkin about!


RE: Image Text by Menthix on 08-10-2004 at 08:00 AM

Yeah, that looks like it. More info about saralk's script here: http://shoutbox.menthix.net/showthread.php?tid=28801&pid=279161