Changeset 238 for dev

Show
Ignore:
Timestamp:
09/12/07 13:09:32 (15 years ago)
Author:
exi
Message:

Patch from ticket:42 - added reading of EVE caputered portraits

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/includes/class.thumb.php

    r190 r238  
    107107        { 
    108108            $img = imagecreatefromjpeg('cache/portraits/'.$this->_id.'_256.jpg'); 
     109        } 
     110        // 20070911 - Gate: Support EVE/Capture/Portraits images 
     111        elseif (file_exists('cache/portraits/'.$this->_id.'.jpg')) 
     112        { 
     113                        $img = imagecreatefromjpeg('cache/portraits/'.$this->_id.'.jpg'); 
     114                        $newimg = imagecreatetruecolor($this->_size, $this->_size); 
     115                        imagecopyresampled($newimg, $img, 0, 0, 0, 0, $this->_size, $this->_size, 1024, 1024); 
     116                        imagejpeg($newimg, $this->_thumb, 90); 
     117                        imagedestroy($newimg); 
     118 
     119                        return; 
    109120        } 
    110121        else