Cheetah
BrightnessCommand.php
Go to the documentation of this file.
1 <?php
2 
4 
6 {
13  public function execute($image)
14  {
15  $level = $this->argument(0)->between(-100, 100)->required()->value();
16 
17  return imagefilter($image->getCore(), IMG_FILTER_BRIGHTNESS, ($level * 2.55));
18  }
19 }
Intervention\Image\Gd\Commands
Definition: BackupCommand.php:3
php
Intervention\Image\Gd\Commands\BrightnessCommand
Definition: BrightnessCommand.php:6
Intervention\Image\Commands\AbstractCommand\argument
argument($key)
Definition: AbstractCommand.php:45
Intervention\Image\Commands\AbstractCommand
Definition: AbstractCommand.php:6
Intervention\Image\Gd\Commands\BrightnessCommand\execute
execute($image)
Definition: BrightnessCommand.php:13