15 $backupName = $this->
argument(0)->value();
17 if (is_resource($backup = $image->getBackup($backupName))) {
20 imagedestroy($image->getCore());
23 $backup = $image->getDriver()->cloneCore($backup);
26 $image->setCore($backup);
31 throw new \Intervention\Image\Exception\RuntimeException(
32 "Backup not available. Call backup() before reset()."