Cheetah
plugins
intervention-image
Intervention
Image
Imagick
Commands
GetSizeCommand.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Intervention\Image\Imagick\Commands
;
4
5
use \Intervention\Image\Size;
6
7
class
GetSizeCommand
extends
\Intervention\Image\Commands\AbstractCommand
8
{
15
public
function
execute
($image)
16
{
18
$core = $image->getCore();
19
20
$this->
setOutput
(
new
Size
(
21
$core->getImageWidth(),
22
$core->getImageHeight()
23
));
24
25
return
true
;
26
}
27
}
Intervention\Image\Commands\AbstractCommand\execute
execute($image)
php
Intervention\Image\Imagick\Commands\GetSizeCommand
Definition:
GetSizeCommand.php:8
Intervention\Image\Commands\AbstractCommand\setOutput
setOutput($value)
Definition:
AbstractCommand.php:75
Intervention\Image\Imagick\Commands
Definition:
BackupCommand.php:3
Intervention\Image\Commands\AbstractCommand
Definition:
AbstractCommand.php:6
Intervention\Image\Size
Definition:
Size.php:8
Generated by
1.8.20