Cheetah
ContrastCommand.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 $image->getCore()->sigmoidalContrastImage($level > 0, $level / 4, 0);
18  }
19 }
php
Intervention\Image\Imagick\Commands\ContrastCommand\execute
execute($image)
Definition: ContrastCommand.php:13
Intervention\Image\Imagick\Commands\ContrastCommand
Definition: ContrastCommand.php:6
Intervention\Image\Imagick\Commands
Definition: BackupCommand.php:3
Intervention\Image\Commands\AbstractCommand\argument
argument($key)
Definition: AbstractCommand.php:45
Intervention\Image\Commands\AbstractCommand
Definition: AbstractCommand.php:6