PHP | Imagick implodeImage() Function

The Imagick implodeImage() function is an inbuilt function in PHP which is used to create a new image as a copy.

Syntax:

bool Imagick::implodeImage( $radius )

Parameters: This function accepts single parameter radius which holds the radius of the implode.



Return Values: This function returns True on success.

Errors/Exceptions: This function throws ImagickException on error.

Below program illustrates the Imagick implodeImage() function in PHP:

Program:

filter_none

edit
close

play_arrow

link
brightness_4
code

<?php
  
// Create new Imagick object
$imagick = new Imagick(
  
// Use Imagick::implodeImage() function to the image
$imagick->implodeImage(0.0001);
  
header("Content-Type: image/png");
  
// Display the output image
echo $imagick->getImageBlob();
  
?>

chevron_right



Output:
Imagick::implodeImage

Reference: https://www.php.net/manual/en/imagick.implodeimage.php



My Personal Notes arrow_drop_up

Pursuing BTech in Computer Science and Engineering from Madan Mohan Malviya University of Technology,Gorakhpur

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.