Touch/mouse over to see original View modified in new window.
Image
Brightness
Contrast
Channel
function brightnessContrastImage($imagePath, $brightness, $contrast, $channel)
{
    $imagick = new \Imagick(realpath($imagePath));
    $imagick->brightnessContrastImage($brightness, $contrast, $channel);
    header("Content-Type: image/jpg");
    echo $imagick->getImageBlob();
}