Imagick::destroy


wizard apg

DESTR0YS the imagick object.


This method is deprecated in favour of Imagick::clear.



<?php

bool Imagick
::destroy();

?>

 


This function has no parameters.





This function returns TRUE on success.





Destroys the Imagick object and frees all resources associated with it.



  1 EXERCISE   

<?php
  
$url 
PATH2IMGL '/others/IMG_10703C.jpg';
   
$image file_get_contents($url);
  
$imagick = new Imagick();
$imagick->readImageBlob($image); 
  
// Comment the destroy() function which 
// will display the image on the web page
 
$imagick->destroy(); 
    
// If the destroy() function is commented out:
// Uncomment the next lines
// to display the image blob

// $s = $imagick->getImageBlob(); 
// echo $s;
  
?>