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