Changeset 10383


Ignore:
Timestamp:
Apr 15, 2011, 3:10:58 PM (13 years ago)
Author:
patdenice
Message:

round is better than ceil for resizing pictures.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions_upload.inc.php

    r10157 r10383  
    497497    if ($ratio_width < $ratio_height)
    498498    {
    499       $destination_width = ceil($width / $ratio_height);
     499      $destination_width = round($width / $ratio_height);
    500500      $destination_height = $max_height;
    501501    }
     
    503503    {
    504504      $destination_width = $max_width;
    505       $destination_height = ceil($height / $ratio_width);
     505      $destination_height = round($height / $ratio_width);
    506506    }
    507507  }
Note: See TracChangeset for help on using the changeset viewer.