Ver Mensaje Individual
  #3 (permalink)  
Antiguo 16/10/2004, 15:58
Avatar de JuanKa
JuanKa
 
Fecha de Ingreso: septiembre-2004
Mensajes: 468
Antigüedad: 19 años, 7 meses
Puntos: 1
Mira aca te pogo un tag que llama a un archivo externo thumbnail.php y si gustas la imgane pequeña lo puedes mandar a otro scrip para que lo visualices de manera normal.


echo "<th width='140' rowspan='3' scope='col' ><a href=\"cat_ventas_puntual.php?cod=".$art['cod_art']."\"><img src=\"thumbnail.php?ruta=Archivos/".$art['ima1']."\" border='0' alt='Mas Informacion'></th>";

thumbnail.php


<?php
$arc=$_GET['ruta'];
$image = imagecreatefromjpeg($arc);
$img_w = imagesx($image);
$img_h = imagesy($image);
$new_img_w = 70;
$new_img_h = 70;
$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);
?>


ESPERO QUE TE SIRVA.

PARA ESTO DEBE DE TENER INSTALADO LA LIBRERIA GD EN EL PHP.INI.