Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/01/2009, 07:10
Adell
 
Fecha de Ingreso: abril-2008
Mensajes: 435
Antigüedad: 16 años
Puntos: 10
Problema con imagecreate()

Estoy intentando usar la funcion imagecreate con los parametros de ancho y alto tal cual como esta en el manual oficial de php, pero me sale el error de undefinied function, el ejemplo es el mismo de la pagina

<?php
// Variables que indican el archivo de la imagen y el nuevo tamano
$filename = 'test.jpg';
$percent = 0.5;

// Content-type para el navegador
header('Content-type: image/jpeg');

// Se obtienen las nuevas dimensiones
list($width, $height) = getimagesize($filename);
$newwidth = $width * $percent;
$newheight = $height * $percent;

// Cargar la imagen
$thumb = imagecreate($newwidth, $newheight);
$source = imagecreatefromjpeg($filename);

// Redimensionar
imagecopyresized($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);

// Mostrar la nueva imagen
imagejpeg($thumb);
?>

Entonces me surgio la duda, estoy trabajando con el easyphp y me preguntaba si este ya trae las librerias gd instaladas

saludos