Ver Mensaje Individual
  #5 (permalink)  
Antiguo 27/12/2009, 22:25
Avatar de pato12
pato12
 
Fecha de Ingreso: septiembre-2007
Ubicación: Salta
Mensajes: 1.620
Antigüedad: 16 años, 7 meses
Puntos: 101
Respuesta: Problema header('Content-type: image/jpeg');

Si quieres mostrar directamente, prueba asi:
Código PHP:
Ver original
  1. function crearthumbnail($ruta){
  2.     $fuente = @imagecreatefromjpeg($ruta);
  3.     $imgAncho = imagesx ($fuente);
  4.     $imgAlto = imagesy($fuente);
  5.     $imagen = imagecreate(100,100);
  6.     imagecopyresized($imagen,$fuente,0,0,0,0,100,100,$imgAncho,$imgAlto);
  7.     ob_start();
  8.         imagejpeg($imagen);
  9.         $img_final_code = ob_get_contents();
  10.     ob_end_clean();
  11.     echo "<img src='data:image/jpeg;base64,".base64_encode($img_final_code)."' />";
  12. }
(No probe el codigo :p)
__________________
Half Music - www.halfmusic.com