Ignore:
Timestamp:
03/12/09 11:32:55 (15 years ago)
Author:
niltonneto
Message:

Fechamento das ocorrências referentes à versão 0.7.11

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jabberit_messenger/inc/getphoto.php

    r551 r697  
    176176                $photoHeight = 90; 
    177177                $newImage = imagecreatetruecolor($photoWidth,$photoHeight);              
    178                  
     178 
    179179                if($photo) 
    180180                { 
    181181                        $photo = imagecreatefromstring($photo); 
    182                         $trans = imagecolortransparent($photo); 
    183182                        imagecopyresized($newImage,$photo,0,0,0,0,$photoWidth,$photoHeight,imagesx($photo),imagesy($photo)); 
    184                         imagepng($newImage); 
    185                         imagedestroy($newImage); 
    186183                } 
    187184                else 
    188185                { 
    189186                        $photo = @imagecreatefrompng("../templates/default/images/photo.png"); 
    190                         $trans = imagecolortransparent($photo); 
    191187                        imagecopyresized($newImage,$photo,0,0,0,0,$photoWidth,$photoHeight,imagesx($photo),imagesy($photo)); 
    192                         imagepng($newImage); 
    193                         imagedestroy($newImage); 
    194                 } 
     188                } 
     189 
     190                ob_start(); 
     191                imagepng($newImage); 
     192                $imagePhoto = ob_get_contents(); 
     193                imagedestroy($newImage); 
     194                ob_end_clean(); 
     195                printf("%s",base64_encode($imagePhoto)); 
    195196        } 
    196197        else 
Note: See TracChangeset for help on using the changeset viewer.