Changeset 9190 for temp/trunk
- Timestamp:
- 2006/11/27 19:13:35 (20 years ago)
- Location:
- temp/trunk
- Files:
-
- 3 edited
-
data/class/SC_UploadFile.php (modified) (2 diffs)
-
html/admin/products/product.php (modified) (1 diff)
-
html/test/kakinaka/resize_image.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/class/SC_UploadFile.php
r9153 r9190 282 282 283 283 // ³ÈÂçΨ¤ò»ØÄꤷ¤Æ²èÁüÊݸ 284 function saveResizeImage($keyname, $ zip_scale= 1) {284 function saveResizeImage($keyname, $to_w = 1, $to_h = 1) { 285 285 $path = ""; 286 286 … … 292 292 $objImage = new SC_Image($filepath); 293 293 294 $path = $objImage->saveResizeImage($filepath, $ zip_scale);294 $path = $objImage->saveResizeImage($filepath, $to_w, $to_h); 295 295 296 296 // ¥Õ¥¡¥¤¥ë̾¤À¤±ÊÖ¤¹ -
temp/trunk/html/admin/products/product.php
r9156 r9190 524 524 525 525 if($objUpFile->temp_file[$arrImageKey[$to_key]] == ""){ 526 // Éý¤Î½Ì¾®Î¨ 527 ($to_w < $from_w) ? $wscale = $to_w / $from_w : $wscale = 1; 528 529 // ¹â¤µ¤Î½Ì¾®Î¨ 530 ($to_h < $from_h) ? $hscale = $to_h / $from_h : $hscale = 1; 531 532 // ½Ì¾®Î¨¤Ï¾®¤µ¤¤¤Û¤¦¤Ë¤¢¤ï¤»¤ë 533 ($wscale < $hscale) ? $scale = $wscale : $scale = $hscale; 534 535 $path = $objUpFile->saveResizeImage($_POST['image_key'], $scale); 526 $path = $objUpFile->saveResizeImage($_POST['image_key'], $to_w, $to_h); 536 527 $objUpFile->temp_file[$arrImageKey[$to_key]] = $path; 537 528 } -
temp/trunk/html/test/kakinaka/resize_image.php
r9189 r9190 10 10 11 11 //sfprintr(pathinfo($file)); 12 $path = $objImage->saveResizeImage($file, 100 0, 1000, true);12 $path = $objImage->saveResizeImage($file, 100, 100, true); 13 13 14 14 //sfprintr($path);
Note: See TracChangeset
for help on using the changeset viewer.
