Syntax:bool Imagick::implodeImage ($radius)
Parameters: this function takes a radiusone parameter that contains the radius of the explosion.Returned Values:This function returns True on success.Errors / Exceptions:this function throws a exceptionImagickException on error.The following program illustrates the Imagick implodeImage() function in PHP:Program:
// Create a new Imagick object
$imagick
=
new
Imagick ( ’ https://media.engineerforengineer.org /wp-content/uploads/engineerforengineer-9.png ’
);
// Use the Imagick::implodeImage() function for the image
$imagick
-> implodeImage (0.0001);
header (
" Content-Type: image / png "
);
// Display the output image
echo
$imagick
-> getImageBlob();
?>
Output: Link: https://www.php.net/manual/en/imagick.implodeimage.php