Splices a solid color into the image.
Image
Start X
Start Y
Width
Height
Splices a solid color into the image.
Parameters
widthint
heightint
xint
yint
function spliceImage($imagePath, $startX, $startY, $width, $height)
{
    $imagick = new \Imagick(realpath($imagePath));
    $imagick->spliceImage($width, $height, $startX, $startY);
    header("Content-Type: image/jpg");
    echo $imagick->getImageBlob();
}