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

  1. // create new Intervention Image
  2. $img = Image::make('public/foo.jpg');
  3. // apply gamma correction
  4. $img->gamma(1.0, 1.6);

See also