Buenos días,
estoy utilizando funciones de la librería GD
Código PHP:
header("Content-type: image/gif");
$imagen=imagecreatefromgif($nombre_imagen);
$ancho=imagesx($imagen);
$negro=imagecolorallocate($imagen,0,0,0);
$long=strlen($texto_imagen)*imagefontwidth(1);
imagestring($imagen,1,15,22,$texto_imagen,$negro);
imagegif($imagen);
imagedestroy($imagen);
pero no me funcionan. He hecho un
Código PHP:
var_dump(gd_info());
para comprobar que esté activa y me devuelve lo siguiente:
array(12) { ["GD Version"]=> string(27) "bundled (2.0.34 compatible)" ["FreeType Support"]=> bool(true) ["FreeType Linkage"]=> string(13) "with freetype" ["T1Lib Support"]=> bool(true) ["GIF Read Support"]=> bool(true) ["GIF Create Support"]=> bool(true) ["JPG Support"]=> bool(true) ["PNG Support"]=> bool(true) ["WBMP Support"]=> bool(true) ["XPM Support"]=> bool(false) ["XBM Support"]=> bool(true) ["JIS-mapped Japanese Font Support"]=> bool(false) }
Esto significa que la librería está activa y puedo usar esas funciones, alguién me lo puede confirmar?
Un saludo,
Gracias