} if ($specManager->getLgMaxFileSize()) { $imageProcessor->setLgFileSizeLimit($specManager->getLgMaxFileSize()); } if ($specManager->getJpgQuality()) { $imageProcessor->setJpgQuality($specManager->getJpgQuality()); } $imageProcessor->setUseImageMagick($specManager->getUseImageMagick()); $imageProcessor->setWebImg($_POST['webimg']); $imageProcessor->setTnImg($_POST['createtnimg']); $imageProcessor->setLgImg($_POST['createlgimg']); $imageProcessor->setCreateNewRec($_POST['createnewrec']); $imageProcessor->setImgExists($_POST['imgexists']); $imageProcessor->setKeepOrig(0); //Run process $imageProcessor->batchLoadImages(); echo '</div>' . "\n"; } } elseif ($action == 'Process Output File') { //Process iDigBio Image ingestion appliance ouput file $imageProcessor = new ImageProcessor(); echo '<ul>'; $imageProcessor->setLogMode(3); $imageProcessor->setSpprid($spprid); $imageProcessor->setCollid($collid); $imageProcessor->processiDigBioOutput($specManager->getSpecKeyPattern()); echo '</ul>'; } elseif ($action == 'Run Batch OCR') { $ocrManager = new SpecProcessorOcr(); $ocrManager->setVerbose(2); $batchLimit = 100;