Cheetah
GetSizeCommand.php
Go to the documentation of this file.
1 <?php
2 
4 
5 use \Intervention\Image\Size;
6 
8 {
15  public function execute($image)
16  {
17  $this->setOutput(new Size(
18  imagesx($image->getCore()),
19  imagesy($image->getCore())
20  ));
21 
22  return true;
23  }
24 }
Intervention\Image\Gd\Commands
Definition: BackupCommand.php:3
Intervention\Image\Gd\Commands\GetSizeCommand
Definition: GetSizeCommand.php:8
php
Intervention\Image\Commands\AbstractCommand\setOutput
setOutput($value)
Definition: AbstractCommand.php:75
Intervention\Image\Commands\AbstractCommand
Definition: AbstractCommand.php:6
Intervention\Image\Gd\Commands\GetSizeCommand\execute
execute($image)
Definition: GetSizeCommand.php:15
Intervention\Image\Size
Definition: Size.php:8