Surrounds the image with a border of the color defined by the bordercolor ImagickPixel object.
function borderImage($image_path, $color, $width, $height)
{
    $imagick = new \Imagick(realpath($image_path));
    $imagick->borderImage($color, $width, $height);
    header("Content-Type: image/jpg");
    echo $imagick->getImageBlob();
}