Changeset 9190 for temp/trunk/html


Ignore:
Timestamp:
2006/11/27 19:13:35 (20 years ago)
Author:
kakinaka
Message:

blank

Location:
temp/trunk/html
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/admin/products/product.php

    r9156 r9190  
    524524     
    525525    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); 
    536527        $objUpFile->temp_file[$arrImageKey[$to_key]] = $path; 
    537528    } 
  • temp/trunk/html/test/kakinaka/resize_image.php

    r9189 r9190  
    1010 
    1111//sfprintr(pathinfo($file)); 
    12 $path = $objImage->saveResizeImage($file, 1000, 1000, true); 
     12$path = $objImage->saveResizeImage($file, 100, 100, true); 
    1313 
    1414//sfprintr($path); 
Note: See TracChangeset for help on using the changeset viewer.