Ver Mensaje Individual
  #2 (permalink)  
Antiguo 01/04/2008, 15:07
Goomba
 
Fecha de Ingreso: abril-2003
Ubicacin: Santiago
Mensajes: 212
Antigedad: 21 aos, 11 meses
Puntos: 0
Re: Problemas con Thumbnails ayuda he probado muchas formas y modos pero nada

hola erncontre otros script el cual parece que funciona mejor solo que me manda unos codigos raros no se a que se debe.
el script es este:
Cdigo PHP:
function createThumbnail$fileName$width$height ){
    
    
$src_img imagecreatefromjpeg($fileName);
    
    
$imageWidth=imageSX($src_img);
    
$imageHeight=imageSY($src_img);
    
    if (
$imageWidth $imageHeight) {
        
$thumbWidth=$width;
        
$thumbHeight=$imageHeight*($height/$imageWidth);
    }
    if (
$imageWidth $imageHeight) {
        
$thumbWidth=$imageWidth*($width/$imageHeight);
        
$thumbHeight=$height;
    }
    if (
$imageWidth == $imageHeight) {
        
$thumbWidth=$width;
        
$thumbHeight=$height;
    }
    
    
$dst_img=ImageCreateTrueColor($thumbWidth$thumbHeight);
    
imagecopyresampled($dst_img$src_img0000$thumbWidth$thumbHeight$imageWidth$imageHeight);
    
    
imagejpeg($dst_img);
    
imagedestroy($dst_img); 
    
imagedestroy($src_img); 

y para llamar a la funcion uso esto
Cdigo PHP:
  <?php
require('../../control.php');
$control=new control();
$busquedaModelo=$control->getModelo(new beanModelo("%","","",""));
$cont=0;
if(
count($busquedaModelo)!=0) {
    foreach (
$busquedaModelo as $modelos) {
            
//recibiremos el nombre de la imagen por URL 
            
echo $imagen "../../imagenes/estufas/".$modelos->getNombre_modelo().".jpg";
            
?>
            <div>
           <?php createThumbnail($imagen,100,100); ?>
            </div>
            <?php
            
    
}    
}
?>
bueno mi pero es que me manda lo siguiente y no s epor que

Cdigo HTML:
JFIF>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default quality C    $.' ",#(7),01444'9=82<.342C  2!!22222222222222222222222222222222222222222222222222dd" ĵ}!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ĵw!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?Z( ]v6~yon[e zоV,(J:ǪZ H&@~Z]Md ݲʀ>7Ÿ'u{RS/"-ޏ-虘uTU[]Ff dQ@] p1 ( )(k篌@ܒWȞf>2(?fErvG&mɍ iOmjl%i*eQKgsgKm)1ޤ-:;KH6_JHdo=3$i75k<Phƒ:i&)keFժazh*⌎l5x V%ƟxX 9t^' 䈔,v=WK_SZqqĦ*c*wI'{8?W + (+篌x}m_B_|_pU ?5qvqQ B=Lx-)Y,G*]N^u `05ϛ]:R}Ek+|;G=`mMK_Kd%BTq)o>\ϡ"kCcjNa#0׫{xUi0lB~_0ߞ=.yzT c*y*φw 9*IBI(Qz3RVjI|&*qV`k#ҽC'(h+ύKB}l?ux:N>f .J8t PqUQ?*\тE=\lu9{H,2r[Kx v1Qr SFK'i Tj7ҔM>:'_*MjOCF0E[鬑8 'Ii%QE-%-1;O4슧d^??j.I>>.4&Ѷd b<1Z:y'ZƂXoZo>x;e+ I“؏[.Hnn.%H߻$-׿fԵ+ZZܕHW ;sҵ-{2]N ҸTθBX˞LjK4e, bkH_H㢾sՅ0eč |VOok߼;*麾nVH2g cy7ƯjǼ=tTQEQE1;G+lt]Zվf3l<z(żEj/iy0ܱMѺ+|;hHK}3p'.sŒ ~\ӄSy#{خims,>ȯw|Pr!;M4 Z}>7i] ~lg#<=ǥtsC4r0V}:B SOTHvQPjţb1EQ@Q@Q@Q@Q@ EPEP 
ojsla alfguien em pueda ayudar
atte
Goomba