Hola, contrate un servidor dedicado windows a una empresa y cuando subi uno de mis sitios no me funciona una funcion php para que la gente pueda escribir texto sobre las imagenes. la empresa me dijo que el servidor tiene instalada la funcion GD2 pero asi mismo no funciona el sistema. Yo necesitaria saber que funcion tengo que modulo tengo que ahcerle instalar en el servidor para que ande esto. Aca les dejo el archivo php con el cual se general las imagenes a ver si lo ven y alguien me ayuda. Desde ya muchas gracias por su tiempo.
Código PHP:
<?php
// Establecer el tipo de contenido
header("Content-type: image/gif");
// Crear la imagen
$backgroundimage = "plantilla-comun.gif";
$im =imagecreatefromgif($backgroundimage);
// Crear algunos colores
$bg = imagecolorallocate ($im, $bgr, $bgg, $bgb);
$blanco = imagecolorallocate($im, 255, 255, 255);
$gris = imagecolorallocate($im, 0, 0, 1);
$negro = imagecolorallocate($im, 0, 0, 0);
$trans = imagecolorallocatealpha($im, 0, 0, 255, 75);
imagefilledrectangle($im, 0, 0, 0, 0, $bg);
// Reemplaze la ruta con su propio ruta a la fuente
$fuente = 'fonts/arialblack.ttf';
// Agregar una sombre al texto
imagettftext($im, 10, 0, 7, 27, $blanco, $fuente, $texto);
// Agregar una sombre al texto
imagettftext($im, 10, 0, 5, 25, $gris, $fuente, $texto);
// Agregar una sombre al texto
imagettftext($im, 10, 0, 7, 44, $blanco, $fuente, $texto2);
// Agregar una sombre al texto
imagettftext($im, 10, 0, 5, 42, $gris, $fuente, $texto2);
// Agregar una sombre al texto
imagettftext($im, 10, 0, 7, 61, $blanco, $fuente, $texto3);
// Agregar una sombre al texto
imagettftext($im, 10, 0, 5, 59, $gris, $fuente, $texto3);
// Agregar una sombre al texto
imagettftext($im, 10, 0, 7, 78, $blanco, $fuente, $texto4);
// Agregar una sombre al texto
imagettftext($im, 10, 0, 5, 76, $gris, $fuente, $texto4);
// Usar imagepng() resulta en texto mas claro, en comparacion con imagejpeg()
imagegif($im);
imagedestroy($im);
?>