Ver Mensaje Individual
  #3 (permalink)  
Antiguo 08/07/2003, 18:53
Avatar de biblio
biblio
 
Fecha de Ingreso: enero-2002
Ubicación: Urano
Mensajes: 577
Antigüedad: 22 años, 3 meses
Puntos: 0
Otra alternativa que te puedo sugerir es esta, aca te pongo el código.

este archivo se llamara thumbnail.php
Código PHP:
<?php
    
//tomamos los datos para la nueva imagen a crear
    
$image        $_GET['image'] ; 
    
$newwidth    $_GET['newwidth'];
    
$newheight    $_GET['newheight'];
    
$height        $_GET['height'];
    
$width        $_GET['width'];
    
// se crea la imagen
    
$src imagecreatefromjpeg("$image");
    
$img imagecreatetruecolor($newwidth,$newheight);  
    
imagecopyresampled($img,$src,0,0,0,0,$newwidth,$newheight,$width,$height); 
    
imagejpeg($img'',85); 
    
// se destruye la imagen
    
imagedestroy($img); 
?>
y este otro: prueba.php

[PHP]<?php
$imagepath="./images/";
$thumbnail = "./thumbnail.php?image=$imagepath$algo.jpg&newheight= 73&newwidth=73&width=50&height=50";
?>
PHP]
<img src="<?php echo $thumbnail;?>" border=0>[/

espero te sirva.