Fork me on GitHub

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

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

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

See also