} if (file_exists('ImageBatchProcessor.php')) { require_once 'ImageBatchProcessor.php'; } } //-------------------------------------------------------------------------------------------// $imageProcessor = new ImageBatchProcessor(); //Initiate log file if (isset($silent) && $silent) { $logMode = 2; } $imageProcessor->setLogMode($logMode); if (!$logProcessorPath && $logPath) { $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) {