Changeset 6846
- Timestamp:
- Apr 30, 2008, 2:36:27 AM (14 years ago)
- Location:
- OpenPNE/branches/work/ebihara/prj_renew_OpenPNE_Img/webapp/lib/OpenPNE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
OpenPNE/branches/work/ebihara/prj_renew_OpenPNE_Img/webapp/lib/OpenPNE/Img.php
r6845 r6846 224 224 if ($c_image['type']) { 225 225 $this->source_format = $c_image['type']; 226 $this->generator->setSourceFormat($this->source_format); 226 227 } 227 228 return base64_decode($c_image['bin']); … … 347 348 $pieces = explode('.', $this->source_filename); 348 349 $this->source_format = $this->check_format(array_pop($pieces)); 350 $this->generator->setSourceFormat($this->source_format); 349 351 } 350 352 … … 361 363 $this->output_format = $this->check_format($this->source_format); 362 364 } 365 $this->generator->setOutputFormat($this->output_format); 363 366 } 364 367 -
OpenPNE/branches/work/ebihara/prj_renew_OpenPNE_Img/webapp/lib/OpenPNE/Img/Generator.php
r6844 r6846 13 13 class OpenPNE_Img_Generator 14 14 { 15 var $source_format; 16 var $output_format; 17 15 18 function OpenPNE_Img_Generator() 16 19 { … … 91 94 return $output_gdimg; 92 95 } 96 97 function setOutputFormat($output_format) 98 { 99 $this->output_format = $output_format; 100 } 101 102 function setSourceFormat($source_format) 103 { 104 $this->source_format = $source_format; 105 } 93 106 } 94 107
Note: See TracChangeset
for help on using the changeset viewer.