Ver Mensaje Individual
  #3 (permalink)  
Antiguo 22/05/2004, 08:43
Avatar de Reynier
Reynier
 
Fecha de Ingreso: noviembre-2002
Ubicación: Por ahí en algún sitio
Mensajes: 1.844
Antigüedad: 23 años, 11 meses
Puntos: 1
Pues sip

josemi lo que tengo pensado hacer con esto es una función para que me retorne un thumbnail algo asi como una galeria de imagenes .Esto es una función que en realidad es esta:
Código PHP:
 function ThumbnailsCreate($img){
  
$image = imagecreatefromjpeg($img);
  
$img_w = imagesx($image);
  
$img_h = imagesy($image);
  
$new_img_source = imagecreate($img_w,$img_h);
  
$new_img_w = 168;
  
$new_img_h = 126;

  
imagecopyresized($new_img_source, $image, 0, 0, 0, 0, $img_w, $img_h, $new_img_w, $new_img_h);

  
header("Content-type: image/jpeg");
  
imagejpeg($new_img_source);
 } 
ahora donde la llamo tiene todo este código delante:
Código PHP:
...
<td class="txt"><? ThumbnailsCreate($ftech['idimagen']);?></td>
...
no sabía si eso tenía algo que ver. De todas maneras poner ob_start() al inicio y ob_end_flush() al final no me resuelven ese problema ?

Salu2
__________________
Ing. Reynier Pérez Mira