Ignore:
Timestamp:
Apr 15, 2011, 3:16:29 PM (13 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.