0byt3m1n1
Path:
/
home
/
mgatv524
/
www
/
mctv
/
vendor
/
intervention
/
image
/
src
/
Intervention
/
Image
/
Imagick
/
Commands
/
[
Home
]
File: BrightnessCommand.php
<?php namespace Intervention\Image\Imagick\Commands; use Intervention\Image\Commands\AbstractCommand; class BrightnessCommand extends AbstractCommand { /** * Changes image brightness * * @param \Intervention\Image\Image $image * @return boolean */ public function execute($image) { $level = $this->argument(0)->between(-100, 100)->required()->value(); return $image->getCore()->modulateImage(100 + $level, 100, 100); } }