gamma — Apply gamma correction

Description

public Intervention\Image\Image gamma( float $correction )

Performs a gamma correction operation on the current image.

Parameters

correction

Gamma compensation 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.6);

See also