RE: [PHP-ES] funcion imagecreatefromgif()

From: Date: Tue, 10 Jun 2003 06:22:22 +0000
Subject: RE: [PHP-ES] funcion imagecreatefromgif()
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-37196@lists.php.net to get a copy of this message
el soporte para GIF ha sido suprimido porque a dejado de ser gratuito. Prueba con JPEG o PNG a ver si te funciona. -----Mensaje original----- De: Gustavo [mailto:gustavo@mgsystem.com] Enviado el: dimarts, 10 / juny / 2003 03:31 Para: lista@phpes.com Asunto: [PHP-ES] funcion imagecreatefromgif() *Acabo de hacer el siguiente script en php, para modificar el tamaño de unas imagenes, pero no puedo usar las funciones imgecreate se debe a que no tendre soporte para gd??? porque no dice que no la soporta, sino que no la reconoce. tengo gd-1.8.4-4 en phpinfo(); no veo nada que me diga si lo soporta o no. Que puedo hacer?? POr las dudas aca esta el error y el script: Fatal error*: Call to undefined function: imagecreatefromgif() in */prueba/liberty/public_html/rsize.php* on line *9 <?php /* Este Archivo Recibe Los Parametros $ruta, Que Es La Ruta Interna De La Imagen En El Servidor, Y Los Parametros $lim_ancho y $lim_alto Que Se Refiere A los limites Alto Y Ancho De La mueva imagen.*/ function thumbnail($ruta,$lim_ancho,$lim_alto) { $fuente = imagecreatefromgif($ruta); $img_ancho = imagesx ($fuente); $img_alto = imagesy($fuente); if ($img_ancho>$lim_ancho) { $ancho = $lim_ancho; $alto = (($img_ancho/$lim_ancho)*$img_alto); if ($alto>$lim_alto) { $alto = $lim_alto; $ancho = (($img_alto/$lim_alto)*$img_ancho); } $imagen = ImageCreate($ancho,$alto); } else { if ($img_alto>$lim_alto) { $alto = $lim_alto; $ancho = (($img_alto/$lim_alto)*$img_ancho); $imagen = ImageCreate($ancho,$alto); } } ImageCopyResized($imagen,$fuente,0,0,0,0,$ancho,$alto,$img_ancho,$img_alto); str_replace('.jpg','_med.jpg', $ruta). imageJpeg($imagen,$ruta); } thumbnail('/red_interna/personal/gustavo/cd/101.jpg',150,150); Gracias Gustavo * --------------------------------------------------------------------- Archivo On-line: http://www.phpes.com/ via news: news://news.phpes.com/ Manual PHP en español: http://www.php.net/manual/es/ Para dar de baja la suscripción, mande un mensaje a: lista-unsubscribe@phpes.com

« previous php.general.es (#37196) next »