Beispiel #1
0
		<div id="innertext">
			<h2><?php 
echo $specManager->getCollectionName();
?>
</h2>
			<?php 
if ($isEditor) {
    $specManager->setProjVariables($spprid);
    if ($action == 'Process Images') {
        if ($specManager->getProjectType() == 'iplant') {
            $imageProcessor = new ImageProcessor();
            echo '<ul>';
            $imageProcessor->setLogMode(3);
            $imageProcessor->setCollid($collid);
            $imageProcessor->setSpprid($spprid);
            $imageProcessor->processIPlantImages($specManager->getSpecKeyPattern(), $specManager->getLastRunDate());
            echo '</ul>';
        } else {
            echo '<div style="padding:15px;">' . "\n";
            $imageProcessor = new ImageBatchProcessor();
            $imageProcessor->setLogMode(1);
            $imageProcessor->initProcessor();
            $imageProcessor->setCollArr(array($collid => array('pmterm' => $specManager->getSpecKeyPattern())));
            $imageProcessor->setDbMetadata(1);
            $imageProcessor->setSourcePathBase($specManager->getSourcePath());
            $imageProcessor->setTargetPathBase($specManager->getTargetPath());
            $imageProcessor->setImgUrlBase($specManager->getImgUrlBase());
            $imageProcessor->setServerRoot($serverRoot);
            if ($specManager->getWebPixWidth()) {
                $imageProcessor->setWebPixWidth($specManager->getWebPixWidth());
            }
<?php

require_once '../../../config/symbini.php';
require_once $serverRoot . '/classes/ImageProcessor.php';
$imageProcessor = new ImageProcessor();
//Run process
$imageProcessor->initProcessor();
$imageProcessor->processIPlantImages();
Beispiel #3
0
			<h2><?php 
echo $specManager->getCollectionName();
?>
</h2>
			<?php 
if ($isEditor) {
    $specManager->setProjVariables($spprid);
    if ($action == 'Process Images') {
        if ($specManager->getProjectType() == 'iplant') {
            $imageProcessor = new ImageProcessor();
            echo '<ul>';
            $imageProcessor->setLogMode(3);
            $imageProcessor->setCollid($collid);
            $imageProcessor->setSpprid($spprid);
            $runDate = $_POST['startdate'];
            $imageProcessor->processIPlantImages($specManager->getSpecKeyPattern(), $runDate);
            echo '</ul>';
        } else {
            echo '<div style="padding:15px;">' . "\n";
            $imageProcessor = new ImageBatchProcessor();
            $imageProcessor->setLogMode(1);
            $imageProcessor->initProcessor();
            $imageProcessor->setCollArr(array($collid => array('pmterm' => $specManager->getSpecKeyPattern())));
            $imageProcessor->setDbMetadata(1);
            $imageProcessor->setSourcePathBase($specManager->getSourcePath());
            $imageProcessor->setTargetPathBase($specManager->getTargetPath());
            $imageProcessor->setImgUrlBase($specManager->getImgUrlBase());
            $imageProcessor->setServerRoot($serverRoot);
            if ($specManager->getWebPixWidth()) {
                $imageProcessor->setWebPixWidth($specManager->getWebPixWidth());
            }