contrast()
->contrast(int $level): SergiX44\ImageZen\Image
Changes the contrast of the image.
Parameters
int $level
: The amount of contrast to apply (-100 to 100)
Returns
Instance of SergiX44\ImageZen\Image
.
Example
use SergiX44\ImageZen\Image;
$image = Image::make('path/to/image.jpg')
->contrast(50); // increase contrast
$image = Image::make('path/to/image.jpg')
->contrast(-50); // decrease contrast