Creates a new image that is a copy of an existing one with the image pixels "imploded" by the specified percentage.
function implodeImage($image_path)
{
    $imagick = new \Imagick(realpath($image_path));
    $imagick->implodeImage(0.0001);
    header("Content-Type: image/jpg");
    echo $imagick->getImageBlob();

}