Changeset 238 for dev/common
- Timestamp:
- 09/12/07 13:09:32 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/common/includes/class.thumb.php
r190 r238 107 107 { 108 108 $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; 109 120 } 110 121 else