Cheetah
plugins
intervention-image
Intervention
Image
Gd
Commands
PixelateCommand.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Intervention\Image\Gd\Commands
;
4
5
class
PixelateCommand
extends
\Intervention\Image\Commands\AbstractCommand
6
{
13
public
function
execute
($image)
14
{
15
$size = $this->
argument
(0)->type(
'digit'
)->value(10);
16
17
return
imagefilter($image->getCore(), IMG_FILTER_PIXELATE, $size,
true
);
18
}
19
}
Intervention\Image\Gd\Commands
Definition:
BackupCommand.php:3
php
Intervention\Image\Gd\Commands\PixelateCommand
Definition:
PixelateCommand.php:6
Intervention\Image\Gd\Commands\PixelateCommand\execute
execute($image)
Definition:
PixelateCommand.php:13
Intervention\Image\Commands\AbstractCommand\argument
argument($key)
Definition:
AbstractCommand.php:45
Intervention\Image\Commands\AbstractCommand
Definition:
AbstractCommand.php:6
Generated by
1.8.20