aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/functions_upload.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/include/functions_upload.inc.php')
-rw-r--r--admin/include/functions_upload.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/include/functions_upload.inc.php b/admin/include/functions_upload.inc.php
index a51a71ae9..98c17d53b 100644
--- a/admin/include/functions_upload.inc.php
+++ b/admin/include/functions_upload.inc.php
@@ -496,13 +496,13 @@ function get_resize_dimensions($width, $height, $max_width, $max_height, $rotati
{
if ($ratio_width < $ratio_height)
{
- $destination_width = ceil($width / $ratio_height);
+ $destination_width = round($width / $ratio_height);
$destination_height = $max_height;
}
else
{
$destination_width = $max_width;
- $destination_height = ceil($height / $ratio_width);
+ $destination_height = round($height / $ratio_width);
}
}