aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/filestore.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/filestore.php')
-rw-r--r--engine/lib/filestore.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/engine/lib/filestore.php b/engine/lib/filestore.php
index 4627c93f0..f0b3baa4c 100644
--- a/engine/lib/filestore.php
+++ b/engine/lib/filestore.php
@@ -888,8 +888,10 @@ function get_resized_image_from_existing_file($input_name, $maxwidth, $maxheight
} elseif ($width < $new_width) {
$ratio = $new_height / $height;
}
- $region_height = $new_height = floor($height * $ratio);
- $region_width = $new_width = floor($width * $ratio);
+ $region_height = $height;
+ $region_width = $width;
+ $new_height = floor($height * $ratio);
+ $new_width = floor($width * $ratio);
}
// load original image