mirror of
https://github.com/Intervention/image.git
synced 2025-08-01 11:30:16 +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();
|
||||
$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);
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user