Ver Mensaje Individual
  #7 (permalink)  
Antiguo 21/12/2004, 10:09
Avatar de JuanKa
JuanKa
 
Fecha de Ingreso: septiembre-2004
Mensajes: 468
Antigüedad: 20 años, 4 meses
Puntos: 1
las imagenes pequeñas las genero con este archivo
thumbnail.php cuyo contenido es el sgte.

<?php
$arc=$_GET['ruta'];
$image = imagecreatefromjpeg($arc);
$img_w = imagesx($image);
$img_h = imagesy($image);

$new_img_w = 120;
$new_img_h = 100;

$new_img_source = imagecreatetruecolor($new_img_w,$new_img_h);
imagecopyresized($new_img_source, $image, 0, 0, 0, 0, $new_img_w, $new_img_h,$img_w, $img_h);
header("Content-type: image/jpeg");
imagejpeg($new_img_source);
?>


si te das cuenta el tamaño de la imagen pequeña lo hago forzando el tamaño en este caso 120x100.

Ahora el tamaño de las imagenes que entro son diferentes, es decir la imagen 1 puede tener como tamaño 420x360px; la imagen 2: 320x300px, etc, es
pero cuando muestro TODAS LAS IMAGENES PEQUEÑAS HAGO QUE SEAN DE TAMAÑO 120X100 Y LUEGO CUANDO LE DE CLICK YA ME VAYA A OTRA WEB CUYO TAMAÑO DE ESTE SEA EL TAMAÑO DE LA IMAGEN ES DECIR DE 420X360 o 320X300 RESPECTIVAMENTE.

Ojala me hayas entendido