Log in

View Full Version : [Verrou] First ever GD :D



Verrou
24-07-2007, 05:40 AM
Lol i'm noob at all things PHP etc. so gimme a break!

http://andrehamon.evenhosting.com/gd

I feel quite proud even though it may seem easy to some of you :P
SO yeah.

Am i close to making one with habbo fonts? (eg. Bathroom, Asian etc.)
Is it anymore advanced?

Thanks,
Verrou

Recursion
24-07-2007, 07:21 AM
doesnt work?



<img>The image “ht.tp://www.andrehamon.evenhosting.com/gd/test1.php?text=TFerg006&rgb=0%2C0%2C0&size=1-10&font=volter.ttf&submit=Submit%21” cannot be displayed, because it contains errors.

(I put the . in the http to stop the forum linking it.)

Amilo
24-07-2007, 08:01 AM
You need to enter a number from 1-10 for size. You left it as 1-10.

Verrou
24-07-2007, 08:12 AM
Yup! What Amilo said, and the best size for Volter is 7 :D

http://www.andrehamon.evenhosting.com/gd/test1.php?text=TFerg006&rgb=0%2C0%2C0&size=7&font=volter.ttf&submit=Submit%2

Amilo
24-07-2007, 08:39 AM
I think your sites crashed. Might just be me.

Luckyrare
24-07-2007, 09:02 AM
I think your sites crashed. Might just be me.
working for me x]

nice work

Recursion
24-07-2007, 09:11 AM
Did you follow any tutorials or something, if so, please link me ? :D

Luckyrare
24-07-2007, 09:18 AM
imagettftext()

www.php.net/imagettftext

Theres everything you need to know

Invent
24-07-2007, 01:39 PM
Habbo font's are more advanced.

Verrou
25-07-2007, 02:23 AM
Kk, thanks for comments, is there a way to make the image however big it needs to be rather than set an image size? Like now for a little bit of text saying hello:
http://www.andrehamon.evenhosting.com/gd/test1.php?text=Hello&rgb=0%2C0%2C0&size=7&font=volter.ttf&submit=Submit%2

It's 700 x 40 o_o is there a way to make it smaller so it's the size of the text?

Verrou
25-07-2007, 02:25 AM
Kk, thanks for comments, is there a way to make the image however big it needs to be rather than set an image size? Like now for a little bit of text saying hello:
http://www.andrehamon.evenhosting.com/gd/test1.php?text=Hello&rgb=0%2C0%2C0&size=7&font=volter.ttf&submit=Submit%2

It's 700 x 40 o_o is there a way to make it smaller so it's the size of the text?

EDIT: Can someone please write me a .htaccess file with the rewrite function so i can post gd things as images on the forums please?

Is this right:

RewriteEngine on
RewriteRule ^gd/([^\/]+)/?$ gd.php?text=$1 [L]

Jamie.
25-07-2007, 05:58 PM
Yep... depending if u have more than one $_get[lol] or w/e then u will have to start doing....
RewriteEngine on
RewriteRule ^gd/([^\/]+)/([^\/]+)/$ gd.php?text=$1&lol=$2 [L]


i dont think that rewrite rule will work tho ;)

Want to hide these adverts? Register an account for free!