예제 #1
0
         }
         if ($specManager->getLgPixWidth()) {
             $imageProcessor->setLgPixWidth($specManager->getLgPixWidth());
         }
         if ($specManager->getWebMaxFileSize()) {
             $imageProcessor->setWebFileSizeLimit($specManager->getWebMaxFileSize());
         }
         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);
}
if ($webFileSizeLimit) {
    $imageProcessor->setWebFileSizeLimit($webFileSizeLimit);
}
if ($lgFileSizeLimit) {
    $imageProcessor->setLgFileSizeLimit($lgFileSizeLimit);
}
$imageProcessor->setJpgQuality($jpgQuality);
$imageProcessor->setUseImageMagick($useImageMagickBatch);
if (isset($webImg) && $webImg) {
    $imageProcessor->setWebImg($webImg);
} elseif (isset($createWebImg) && $createWebImg) {
    $imageProcessor->setCreateWebImg($createWebImg);
}
if (isset($tnImg) && $tnImg) {
    $imageProcessor->setTnImg($tnImg);
} elseif (isset($createTnImg) && $createTnImg) {
    $imageProcessor->setCreateTnImg($createTnImg);
}
if (isset($lgImg) && $lgImg) {
    $imageProcessor->setLgImg($lgImg);
} elseif (isset($createLgImg) && $createLgImg) {
    $imageProcessor->setCreateLgImg($createLgImg);
}
$imageProcessor->setKeepOrig($keepOrig);
$imageProcessor->setCreateNewRec($createNewRec);
if (isset($imgExists)) {
    $imageProcessor->setImgExists($imgExists);
} elseif (isset($copyOverImg)) {
    $imageProcessor->setCopyOverImg($copyOverImg);
}