Image::gamma

Apply gamma correction to the current image

2.5M Downloads / Month

Open Source MIT License

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