Exemplo n.º 1
0
 /**
  * Destroys current image core and frees up memory
  *
  * @param  \Intervention\Image\Image $image
  * @return boolean
  */
 public function execute($image)
 {
     // destroy image core
     $image->getCore()->clear();
     // destroy backups
     foreach ($image->getBackups() as $backup) {
         $backup->clear();
     }
     return true;
 }
Exemplo n.º 2
0
 /**
  * Destroys current image core and frees up memory
  *
  * @param  \Intervention\Image\Image $image
  * @return boolean
  */
 public function execute($image)
 {
     // destroy image core
     imagedestroy($image->getCore());
     // destroy backups
     foreach ($image->getBackups() as $backup) {
         imagedestroy($backup);
     }
     return true;
 }