
22/08/2002, 14:58
|
 | Usuario no validado | | Fecha de Ingreso: abril-2002 Ubicación: Merida
Mensajes: 2.165
Antigüedad: 22 años, 11 meses Puntos: 3 | |
Re: Cambiar el tamaño de una inagen en PHP <?php
//Una Creacion De Jorge Luis Martinez M
//http://misCodigos.jlmnetwork.com/
/*Este Archivo Recibe Los Parametros $ruta, Que Es La Ruta Interna De La Imagen En El Servidor, Y Los Parametros $ancho y $alto Que Se Refiere Al Alto Y Ancho De La Previsualizacion.*/
$fuente = @imagecreatefromgif($ruta);
$imgAncho = imagesx ($fuente);
$imgAlto =imagesy($fuente);
$imagen = ImageCreate($ancho,$alto);
ImageCopyResized($imagen,$fuente,0,0,0,0,$ancho,$a lto,$imgAncho,$imgAlto);
Header("Content-type: image/gif");
imageGif($imagen);
?> |