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