Changeset 6928
- Timestamp:
- May 2, 2008, 7:44:38 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OpenPNE/branches/work/ebihara/prj_renew_OpenPNE_Img/webapp/lib/OpenPNE/Img/Generator.php
r6927 r6928 136 136 touch($this->cache_fullpath); 137 137 switch ($this->getOutputFormat()) { 138 case 'jpeg':139 138 case 'jpg': 140 default:141 imagejpeg($output_gdimg, $this->cache_fullpath, $this->jpeg_quality);break;139 imagejpeg($output_gdimg, $this->cache_fullpath, $this->jpeg_quality); 140 break; 142 141 case 'gif': 143 142 imagegif($output_gdimg, $this->cache_fullpath); … … 194 193 { 195 194 if ($output_format) { 196 $this->output_format = $ this->checkFormatString($output_format);195 $this->output_format = $output_format; 197 196 } else { 198 $this->output_format = $this-> checkFormatString($this->getSourceFormat());197 $this->output_format = $this->getSourceFormat(); 199 198 } 200 199 } … … 224 223 function getOutputFormat() 225 224 { 226 return $this-> output_format;225 return $this->checkFormatString($this->output_format); 227 226 } 228 227
Note: See TracChangeset
for help on using the changeset viewer.