Changeset 9203 for temp/trunk
- Timestamp:
- 2006/11/27 19:43:49 (20 years ago)
- Location:
- temp/trunk
- Files:
-
- 2 edited
-
data/class/SC_Image.php (modified) (2 diffs)
-
html/resize_image.php (modified) (1 diff)
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 -
temp/trunk/html/resize_image.php
r9202 r9203 10 10 $objImage->saveResizeImage($file, $_GET["width"], $_GET["height"], true); 11 11 }else{ 12 $objImage->saveResizeImage(NO_IMAGE_ URL, $_GET["width"], $_GET["height"], true);12 $objImage->saveResizeImage(NO_IMAGE_DIR, $_GET["width"], $_GET["height"], true); 13 13 } 14 14
Note: See TracChangeset
for help on using the changeset viewer.
