So I'm trying to use the GD Library into my Wordpress website.
I've created the images.php page with this code :
function loadImage($name, $lastname) {
header ("Content-type: image/jpg");
$fond = imagecreatefromjpeg('link');
$font = "arial.ttf";
$noir = imagecolorallocate($fond, 0, 0, 0);
$blanc = imagecolorallocate($fond, 255, 255, 255);
imagettftext($fond, 20, 0, 600, 80, $blanc, $font, $name);
imagestring($fond, 5, 200, 200, $lastname, $blanc);
imagejpeg($fond, 'folder');
}
Then I execute loadImage("bob"); into another page. The imagestring function works, but not the imagettftexte. I tried everything but it seems that imagettftext doesnt work when giving args for the string to display.
If you guys could help me on that...
Thanks