Changeset 10384


Ignore:
Timestamp:
04/15/11 15:16:29 (9 years ago)
Author:
patdenice
Message:

merge r10383 from trunk to branch 2.2
round is better than ceil for resizing pictures.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/admin/include/functions_upload.inc.php

    r9952 r10384  
    491491    if ($ratio_width < $ratio_height) 
    492492    {  
    493       $destination_width = ceil($width / $ratio_height); 
     493      $destination_width = round($width / $ratio_height); 
    494494      $destination_height = $max_height; 
    495495    } 
     
    497497    {  
    498498      $destination_width = $max_width;  
    499       $destination_height = ceil($height / $ratio_width); 
     499      $destination_height = round($height / $ratio_width); 
    500500    } 
    501501  } 
Note: See TracChangeset for help on using the changeset viewer.