Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/03/2011, 11:39
maxpower2008
 
Fecha de Ingreso: diciembre-2007
Mensajes: 427
Antigüedad: 16 años, 4 meses
Puntos: 35
thmbnails pierde calidad

Utilizo esta funcion para generar thumbnails pero pierde mucha calidad
la imagen a la hora de mostrarla.
Como podria mejorar el thumbnail para q no pierda tanta calidad no importa si pesa
un poco mas.
Código PHP:
public function Generar_Thumbnails($rutaimagen,$rutathumbnails,$ancho,$alto){
        
//$arc="../imagenes/pel_47.jpg";
                
$fuente = @imagecreatefromjpeg($rutaimagen); 
$imgAncho imagesx ($fuente); 
$imgAlto =imagesy($fuente); 
$imagen ImageCreate($ancho,$alto); 

ImageCopyResized($imagen,$fuente,0,0,0,0,$ancho,$alto,$imgAncho,$imgAlto); 
 
//Header("Content-type: image/jpeg"); 
imageJpeg($imagen,$rutathumbnails); 

        
//return $ruta;
        
        
    
}//end function



Gracias por leer el msj.
Salu2.