mirror of
https://github.com/Intervention/image.git
synced 2025-08-10 16:04:04 +02:00
fixed bug while pixelating small images
This commit is contained in:
@@ -11,7 +11,7 @@ class PixelateCommand extends \Intervention\Image\Commands\AbstractCommand
|
|||||||
$width = $image->getWidth();
|
$width = $image->getWidth();
|
||||||
$height = $image->getHeight();
|
$height = $image->getHeight();
|
||||||
|
|
||||||
$image->getCore()->scaleImage($width / $size, $height / $size);
|
$image->getCore()->scaleImage(max(1, ($width / $size)), max(1, ($height / $size)));
|
||||||
$image->getCore()->scaleImage($width, $height);
|
$image->getCore()->scaleImage($width, $height);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user