Warning, file /webapps/ocs-webserver/library/vendor/intervention/image/src/Intervention/Image/Gd/Commands/GammaCommand.php was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 <?php
0002 
0003 namespace Intervention\Image\Gd\Commands;
0004 
0005 class GammaCommand extends \Intervention\Image\Commands\AbstractCommand
0006 {
0007     /**
0008      * Applies gamma correction to a given image
0009      *
0010      * @param  \Intervention\Image\Image $image
0011      * @return boolean
0012      */
0013     public function execute($image)
0014     {
0015         $gamma = $this->argument(0)->type('numeric')->required()->value();
0016 
0017         return imagegammacorrect($image->getCore(), 1, $gamma);
0018     }
0019 }