Changeset 703

Show
Ignore:
Timestamp:
07/23/06 07:31:03 (2 years ago)
Author:
graphittie
Message:

#117 : 지난 포스트에 포함된 이미지 리사이즈.

  • ceil()을 floor()로 변경.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • sandbox/lib/view/view.php

    r699 r703  
    12781278                /*if ($originWidth > $contentWidth) { 
    12791279                    $tempWidth = $contentWidth; 
    1280                     $tempHeight = ceil($originHeight * $contentWidth / $originWidth); 
     1280                    $tempHeight = floor($originHeight * $contentWidth / $originWidth); 
    12811281                } else { 
    12821282                    $tempWidth = $originWidth; 
     
    13031303                 
    13041304                if (!isset($currentWidth) && isset($currentHeight)) { 
    1305                     $currentWidth = ceil($originWidth * $currentHeight / $originHeight); 
     1305                    $currentWidth = floor($originWidth * $currentHeight / $originHeight); 
    13061306                } else if (isset($currentWidth) && !isset($currentHeight)) { 
    1307                     $currentHeight = ceil($originHeight * $currentWidth / $originWidth); 
     1307                    $currentHeight = floor($originHeight * $currentWidth / $originWidth); 
    13081308                } else if (!isset($currentWidth) && !isset($currentHeight)) { 
    13091309                    $currentWidth = $originWidth > $contentWidth ? $contentWidth : $originWidth; 
    1310                     $currentHeight = ceil($originHeight * $currentWidth / $originWidth); 
     1310                    $currentHeight = floor($originHeight * $currentWidth / $originWidth); 
    13111311                } 
    13121312                 
    13131313                if ($currentWidth > $contentWidth) { 
    13141314                    $tempWidth = $contentWidth; 
    1315                     $tempHeight = ceil($currentHeight * $contentWidth / $currentWidth); 
     1315                    $tempHeight = floor($currentHeight * $contentWidth / $currentWidth); 
    13161316                } else { 
    13171317                    $tempWidth = $currentWidth;