Ejemplo n.º 1
0
" /> 
											<a id="tnpixwidthinfo" href="#" onclick="return false" title="More Information">
												<img src="../../images/info.png" style="width:15px;" />
											</a>
											<div id="tnpixwidthinfodialog">
												Width of the image thumbnail. Width should be greater than image sizing within the thumbnail display pages. 
											</div>
										</div>
									</div>
									<div id="largewidthrow" style="clear:both;">
										<div style="width:180px;float:left;">
											<b>Large pixel width:</b>
										</div>
										<div style="float:left;"> 
											<input name="lgpixwidth" type="text" style="width:50px;" value="<?php 
            echo $specManager->getLgPixWidth();
            ?>
" /> 
											<a id="lgpixwidthinfo" href="#" onclick="return false" title="More Information">
												<img src="../../images/info.png" style="width:15px;" />
											</a>
											<div id="lgpixwidthinfodialog">
												Width of the large version of the image. 
												If the source image is smaller than this width, the file will simply be copied over without resizing. 
												Note that resizing large images may be limited by the PHP configuration settings (e.g. memory_limit).
												If this is a problem, having this value greater than the maximum width of your source images will avoid 
												errors related to resampling large images. 
											</div>
										</div>
									</div>
									<div id="jpgqualityrow" style="clear:both;">
Ejemplo n.º 2
0
 $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']);
 $imageProcessor->setTnImg($_POST['createtnimg']);
 $imageProcessor->setLgImg($_POST['createlgimg']);
Ejemplo n.º 3
0
" /> 
											<a id="tnpixwidthinfo" href="#" onclick="return false" title="More Information">
												<img src="../../images/info.png" style="width:15px;" />
											</a>
											<div id="tnpixwidthinfodialog">
												Width of the image thumbnail. Width should be greater than image sizing within the thumbnail display pages. 
											</div>
										</div>
									</div>
									<div id="largewidthrow" style="clear:both;">
										<div style="width:180px;float:left;">
											<b>Large pixel width:</b>
										</div>
										<div style="float:left;"> 
											<input name="lgpixwidth" type="text" style="width:50px;" value="<?php 
            echo $specManager->getLgPixWidth() ? $specManager->getLgPixWidth() : $IMG_LG_WIDTH;
            ?>
" /> 
											<a id="lgpixwidthinfo" href="#" onclick="return false" title="More Information">
												<img src="../../images/info.png" style="width:15px;" />
											</a>
											<div id="lgpixwidthinfodialog">
												Width of the large version of the image. 
												If the source image is smaller than this width, the file will simply be copied over without resizing. 
												Note that resizing large images may be limited by the PHP configuration settings (e.g. memory_limit).
												If this is a problem, having this value greater than the maximum width of your source images will avoid 
												errors related to resampling large images. 
											</div>
										</div>
									</div>
									<div id="jpgqualityrow" style="clear:both;">