Ver Mensaje Individual
  #3 (permalink)  
Antiguo 01/08/2010, 11:45
nachoz
 
Fecha de Ingreso: octubre-2007
Mensajes: 38
Antigüedad: 16 años, 6 meses
Puntos: 0
Respuesta: Problema con PHP y wiki thumbnails

Código PHP:
Ver original
  1. <?php
  2. //http://pagina.com/
  3.  
  4. /*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.*/
  5.  
  6. $fuente = @imagecreatefromgif($ruta);
  7. $imgAncho = imagesx ($fuente);
  8. $imgAlto =imagesy($fuente);
  9. $imagen = ImageCreate($ancho,$alto);
  10.  
  11. ImageCopyResized($imagen,$fuente,0,0,0,0,$ancho,$alto,$imgAncho,$imgAlto);
  12.  
  13. Header("Content-type: image/gif");
  14. imageGif($imagen);
  15.  
  16. ?>