Tema: Imagenes
Ver Mensaje Individual
  #3 (permalink)  
Antiguo 12/06/2009, 09:59
GreyFOX
 
Fecha de Ingreso: febrero-2008
Mensajes: 49
Antigüedad: 16 años, 2 meses
Puntos: 0
Respuesta: Imagenes

Cita:
Iniciado por Synkronice Ver Mensaje
Puedes proporcionar la parte del código que te da problemas?

Saludos!
Aqui esta el codigo


$_FILES['archivo_usuario']['name']="$id01";
$file =( $_FILES['archivo_usuario']['tmp_name'] );
$image = imagecreatefromjpeg($file);

$width = imagesx($image) ;
$height = imagesy($image) ;

$new_width = 100;
$new_height = ($new_width * $height) / $width ;

$thumb = imagecreate($new_width,$new_height);

imagejpeg($thumb);

imagecopyresized($thumb,$image,0,0,0,0,$new_width, $new_height,$width,$height);

imagedestroy($image);

if ( move_uploaded_file($thumb, $directorio .$id01))
{
print......