} 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()); } if ($specManager->getTnPixWidth()) { $imageProcessor->setTnPixWidth($specManager->getTnPixWidth()); } 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']);
$logProcessorPath = $logPath; } $imageProcessor->setLogPath($logProcessorPath); $imageProcessor->initProcessor($logTitle); //Set remaining variables $imageProcessor->setCollArr($collArr); $imageProcessor->setDbMetadata($dbMetadata); $imageProcessor->setSourcePathBase($sourcePathBase); $imageProcessor->setTargetPathBase($targetPathBase); $imageProcessor->setImgUrlBase($imgUrlBase); $imageProcessor->setServerRoot($serverRoot); if ($webPixWidth) { $imageProcessor->setWebPixWidth($webPixWidth); } if ($tnPixWidth) { $imageProcessor->setTnPixWidth($tnPixWidth); } if ($lgPixWidth) { $imageProcessor->setLgPixWidth($lgPixWidth); } 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) {