Fixed thumbnail generating

This commit is contained in:
Marcin Kurczewski 2014-09-22 14:08:43 +02:00
parent a47be4b78f
commit 7e1234e448

View file

@ -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))
{