Skip to content

Commit

Permalink
Update PixelateCommand.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrainventures committed May 20, 2022
1 parent 54d22c7 commit dcd370e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function execute($image)
$width = $image->getWidth();
$height = $image->getHeight();

$image->getCore()->scaleImage(max(1, ($width / $size)), max(1, ($height / $size)));
$image->getCore()->scaleImage(max(1, intval($width / $size)), max(1, intval($height / $size)));
$image->getCore()->scaleImage($width, $height);

return true;
Expand Down

0 comments on commit dcd370e

Please sign in to comment.