Ver Mensaje Individual
  #1 (permalink)  
Antiguo 19/12/2003, 14:50
Yukas
 
Fecha de Ingreso: octubre-2003
Mensajes: 46
Antigüedad: 20 años, 6 meses
Puntos: 0
Imagen negra Lycos

Hola estoy intentado coger una imagen de una web, escalarla y mostrarla en mí Web, uso este codigo:

Código PHP:
<?php temps.php

$fuente 
= @imagecreatefromjpeg($ruta); 
$imgAncho imagesx ($fuente); 
$imgAlto =imagesy($fuente); 
$imagen ImageCreateTrueColor($ancho,$alto); 

ImageCopyResampled($imagen,$fuente,0,0,0,0,$ancho,$alto,$imgAncho,$imgAlto); 

Header("Content-type: image/jpeg"); 
imagejpeg($imagen); 

?>
la imagen la llamo así: http://usuarios.lycos.es/yukas/temps...o=107&alto=140 pero sale negra :(

¿Por que se ve negra? en mi server local se ve bien.
Saludos.