Syntax:bool Imagick::destroy (void)
Parameters:This function takes no parameters.
Return Value:This function returns TRUE on success.The program below illustrates
function Imagick::destroy()in PHP:
Program :
// Create a new imagick object with an image
$imagick
=
new
Imagick (
’ https://media.engineerforengineer.org/wp-content/upl oads / engineerforengineer-9.png ’
);
// Use your $imagick object for anything
// make it here and destroy it after use.
// Destroy this object
$imagick
-> destroy();
?>
Output:because the image is distorted , it will not display images.Link: https: / /www.php.net/manual/en/imagick.destroy.php