imagegammacorrect
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Apply a gamma correction to a GD image
imagegammacorrect
(
GdImage $image
,
float $input_gamma
,
float $output_gamma
):
bool
Intervention/image
{
$gamma
=
$this
->
argument
(
0
)->
type
(
'numeric'
)->
required
()->
value
();
return
imagegammacorrect
(
$image
->
getCore
(),
1
,
$gamma
);
}
}
src/Intervention/Image/Gd/Commands/GammaCommand.php