Hello following this answer, i'm trying to add a text to a image using GD Library, sadly i'm unable to do it, this is my code:
<?php
//Set the Content Type
header('Content-type: image/jpeg');
// Create Image From Existing File
$jpg_image = imagecreatefromjpeg('serra.jpg');
// Allocate A Color For The Text
$white = imagecolorallocate($jpg_image, 255, 255, 255);
// Set Path to Font File
$font_path = 'denmark.ttf';
// Set Text to Be Printed On Image
$text = "This is a sunset!";
// Print Text On Image
imagettftext($jpg_image, 25, 0, 75, 300, $white, $font_path, $text);
// Send Image to Browser
imagejpeg($jpg_image);
// Clear Memory
imagedestroy($jpg_image);
?>
This code will Output the image without the text in it.
The serra.jpg and denmark.ttf files are both in the same folder as the script.
Running the gd_info() function on my server i got the following:
Any ideas on what could possible be going on?

$font_pathexist? Check that withfile_exists().serra.jpg? Are you sure the coordinates for the text isn't out of the image?