function whiteBalanceImage($image_path)
{
    $imagick = new \Imagick(realpath($image_path));
    $imagick->whiteBalanceImage();
    header("Content-Type: image/jpeg");
    echo $imagick->getImageBlob();
}