mirror of
https://github.com/Intervention/image.git
synced 2025-08-22 05:22:50 +02:00
Fix bug
This commit is contained in:
@@ -27,8 +27,8 @@ class PixelateModifier implements ModifierInterface
|
||||
$size = $frame->getSize();
|
||||
|
||||
$frame->getCore()->scaleImage(
|
||||
max(1, ($size->getWidth() / $this->size)),
|
||||
max(1, ($size->getHeight() / $this->size))
|
||||
round(max(1, ($size->getWidth() / $this->size))),
|
||||
round(max(1, ($size->getHeight() / $this->size)))
|
||||
);
|
||||
|
||||
$frame->getCore()->scaleImage($size->getWidth(), $size->getHeight());
|
||||
|
Reference in New Issue
Block a user