Fixed thumbnail generating
This commit is contained in:
parent
a47be4b78f
commit
7e1234e448
1 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ class ImageThumbnailGenerator implements IThumbnailGenerator
|
|||
}
|
||||
}
|
||||
|
||||
private function cropOutside($image, $srcWidth, $srcHeight, $dstWidth, $dstHeight)
|
||||
private function cropOutside(&$image, $srcWidth, $srcHeight, $dstWidth, $dstHeight)
|
||||
{
|
||||
if (($dstHeight / $dstWidth) > ($srcHeight / $srcWidth))
|
||||
{
|
||||
|
@ -61,7 +61,7 @@ class ImageThumbnailGenerator implements IThumbnailGenerator
|
|||
$this->imageManipulator->cropImage($image, $dstWidth, $dstHeight, $cropX, $cropY);
|
||||
}
|
||||
|
||||
private function cropInside($image, $srcWidth, $srcHeight, $dstWidth, $dstHeight)
|
||||
private function cropInside(&$image, $srcWidth, $srcHeight, $dstWidth, $dstHeight)
|
||||
{
|
||||
if (($dstHeight / $dstWidth) < ($srcHeight / $srcWidth))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue