aboutsummaryrefslogtreecommitdiffstats
path: root/include/derivative_params.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/derivative_params.inc.php')
-rw-r--r--include/derivative_params.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/derivative_params.inc.php b/include/derivative_params.inc.php
index dc19d1df7..b0090cafa 100644
--- a/include/derivative_params.inc.php
+++ b/include/derivative_params.inc.php
@@ -209,11 +209,11 @@ final class SizingParams
if ($ratio_w > $ratio_h)
{
$scale_size[0] = $this->ideal_size[0];
- $scale_size[1] = floor($scale_size[1] / $ratio_w);
+ $scale_size[1] = floor(1e-6 + $scale_size[1] / $ratio_w);
}
else
{
- $scale_size[0] = floor($scale_size[0] / $ratio_h);
+ $scale_size[0] = floor(1e-6 + $scale_size[0] / $ratio_h);
$scale_size[1] = $this->ideal_size[1];
}
}