March 13th, 2013, 07:09 PM
GD Image Library
The code above doesn't "do anything." When I go to the page, all I see is a little image box, that is the default image in chrome when no image exists. It's not the background that is showing. The image isn't being generated at all...
$jpg_image = imagecreatefromjpeg('./bkg.jpg');
$white = imagecolorallocate($jpg_image, 255, 255, 255);
$font_path = './font.ttf';
$text = "This is a test";
imagettftext($jpg_image, 25, 0, 75, 10, $white, $font_path, $text);
Could I have some help?
March 14th, 2013, 02:43 AM
Comment out the header() and see if there are any error messages.
March 14th, 2013, 06:07 AM
Yeah. There is an error. Still don't know what do do though... Error is:
Originally Posted by requinix
Fatal error: Call to undefined function imagettftext() in /home/mcssport/public_html/beta/scripts/gd-library/index.php on line 17
March 14th, 2013, 08:27 AM
HEY! YOU! Read the New User Guide and Forum Rules
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin
"The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002
Think we're being rude? Maybe you asked a bad question
or you're a Help Vampire.
Trying to argue intelligently? Please read this.
March 14th, 2013, 03:09 PM
Thanks there Dan!
Originally Posted by ManiacDan