Image::gamma

Apply gamma correction to the current image

3M Downloads / Month

Open Source MIT License

You are viewing the documentation for Intervention Image 2, this version has reached end of life (EOL). Please consider upgrading to version 3.

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

Apply a gamma correction operation on the current image.

Parameters

correction

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

See also

Edit