Skip to content

Commit 26bed96

Browse files
committed
Correct upscale calculation
1 parent 3808d90 commit 26bed96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/FocusPointImage.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ public function CroppedFocusedImage($width,$height,$upscale=true) {
105105
$height = $height*$widthRatio;
106106
}
107107
else if ($heightRatio < 1) {
108-
$width = $this->owner->width;
109-
$height = $height*$widthRatio;
108+
$height = $this->owner->height;
109+
$width = $width*$heightRatio;
110110
}
111111
}
112112
//Cache buster - add coords to filename as percentage (2 decimal points accuracy)

0 commit comments

Comments
 (0)