GD-lib
Moderator: General Moderators
-
- Forum Commoner
- Posts: 31
- Joined: Sun Jun 13, 2004 6:51 pm
GD-lib
Hi,
I just found out about gd-lib. Where can you get it and how do I install it??
Thanks!
I just found out about gd-lib. Where can you get it and how do I install it??
Thanks!
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
did you try looking on php.net? http://www.php.net/gd
-
- Forum Commoner
- Posts: 31
- Joined: Sun Jun 13, 2004 6:51 pm
-
- Forum Commoner
- Posts: 31
- Joined: Sun Jun 13, 2004 6:51 pm
-
- Forum Commoner
- Posts: 31
- Joined: Sun Jun 13, 2004 6:51 pm
Thanks. I'm pretty sure it works now, since it doesn't say "undefined function"
But i'm using some sample script that I got from a person's website just to learn off of.
It produces garbled up text. Is it something wrong with the script or the server??
EDIT:
I think its because i need the Fonts in my www root folder.
Thanks Alot!
But i'm using some sample script that I got from a person's website just to learn off of.
Code: Select all
<?PHP
$image = imagecreatefrompng("FLASH.png");
$font_size = 14;
$color = imagecolorallocate($image, 255,255,255);
$black = imagecolorallocate($image, 0,0,0);
ImageTTFText ($image, $font_size, 0, 56, 36, $black, "../fonts/ARIALBD.TTF","Test Text");
ImageTTFText ($image, $font_size, 0, 55, 35, $color, "../fonts/ARIALBD.TTF","Test Text");
header("Content-type: image/png");
imagepng($image);
imagedestroy($image);
?>
EDIT:
I think its because i need the Fonts in my www root folder.
Thanks Alot!
-
- Forum Commoner
- Posts: 31
- Joined: Sun Jun 13, 2004 6:51 pm
-
- Forum Commoner
- Posts: 31
- Joined: Sun Jun 13, 2004 6:51 pm
-
- Forum Commoner
- Posts: 31
- Joined: Sun Jun 13, 2004 6:51 pm
-
- Forum Commoner
- Posts: 31
- Joined: Sun Jun 13, 2004 6:51 pm