Ver Mensaje Individual
  #5 (permalink)  
Antiguo 27/09/2010, 09:45
Avatar de loncho_rojas
loncho_rojas
Colaborador
 
Fecha de Ingreso: octubre-2008
Ubicación: En el mejor lugar del mundo
Mensajes: 2.704
Antigüedad: 15 años, 6 meses
Puntos: 175
Respuesta: Crear Thumbnails o miniaturas de imagenes desde PHP

he intentado hacer esto:

Código PHP:
<img src="<?php
require_once '../ThumbLib.inc.php';
$thumb PhpThumbFactory::create('01.jpg');
$thumb->resizePercent(18);
$thumb->show(); ?>" />
tambien:

Código PHP:
<?php
function resize(){
require_once 
'../ThumbLib.inc.php';
$thumb PhpThumbFactory::create('01.jpg');
$thumb->resizePercent(18);
$thumb->show(); 
}
?>
<img src="<?php resize() ?>" />
tambien:
Código PHP:
<?php

$ruta
'01.jpg';
function 
resize($ruta){
    
require_once 
'../ThumbLib.inc.php';
$thumb PhpThumbFactory::create($ruta);
$thumb->resizePercent(18);
$thumb->show();

}
?>
<img src="<?php resize($ruta?>" />
pero aun asi, no me lo trae.. es decir, al parecer no admite embeberlo en en tag HTML para mostrarlo como imagen..
__________________
Ayudo con lo que puedo en el foro, y solo en el foro.. NO MENSAJES PRIVADOS.. NO EMAILS NI SKYPE u OTROS.

Antes de hacer un TOPICO piensa si puedes hallarlo en Google o en el Buscador del Foro...