Fork me on GitHub

gamma — Apply gamma correction

Description

public Intervention\Image\Image gamma(float $input, float $output)

Performs a gamma correction operation on the current image. Define the correction for input and output values.

Parameters

input

Gamma compensation of the input value.

output

Gamma compensation of the output value.

Return Values

Instance of Intervention\Image\Image

Examples

// create new Intervention Image
$img = Image::make('public/foo.jpg');

// apply gamma correction
$img->gamma(1.0, 1.6);

See also