Changeset 9203 for temp/trunk/data/class
- Timestamp:
- 2006/11/27 19:43:49 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/data/class/SC_Image.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/class/SC_Image.php
r9201 r9203 60 60 list($from_w, $from_h) = getimagesize($file); 61 61 62 if($to_w == 0 or $to_h == 0){ 63 $scale = 1; 64 }else{ 62 if($to_w > 0 or $to_h > 0){ 65 63 // Éý¤Î½Ì¾®Î¨ 66 64 ($to_w < $from_w) ? $wscale = $to_w / $from_w : $wscale = 1; … … 69 67 // ½Ì¾®Î¨¤Ï¾®¤µ¤¤¤Û¤¦¤Ë¤¢¤ï¤»¤ë 70 68 ($wscale < $hscale) ? $scale = $wscale : $scale = $hscale; 69 }else{ 70 $scale = 1; 71 71 } 72 72
Note: See TracChangeset
for help on using the changeset viewer.
