Package org.infoglue.cms.util.graphics

Examples of org.infoglue.cms.util.graphics.ThumbnailGenerator


    {
      logger.info("The file allready exists so we don't need to dump it again..");
      return outputFile;
    }
   
    ThumbnailGenerator tg = ThumbnailGenerator.getInstance();
    tg.transform(filePath + File.separator + fileName, filePath + File.separator + thumbnailFile, width, height, 100);
   
    logger.info("Time for dumping file " + fileName + ":" + (System.currentTimeMillis() - timer));
   
    return outputFile;
  }
View Full Code Here


          {
            if(!thumbnailFile.exists() && originalFile.exists())
            {
              logger.info("transforming...");
              //ThumbnailGenerator tg = new ThumbnailGenerator();
              ThumbnailGenerator tg = ThumbnailGenerator.getInstance();
              tg.transform(filePath + File.separator + fileName, filePath + File.separator + thumbnailFileName, 75, 75, 100);
              logger.info("transform done...");
            }
           
            assetUrl = CmsPropertyHandler.getWebServerAddress() + "/" + CmsPropertyHandler.getDigitalAssetBaseUrl() + "/" + folderName + "/" + thumbnailFileName;
            logger.info("assetUrl:" + assetUrl);
View Full Code Here

          {
            if(!thumbnailFile.exists() && originalFile.exists())
            {
              logger.info("transforming...");
              //ThumbnailGenerator tg = new ThumbnailGenerator();
              ThumbnailGenerator tg = ThumbnailGenerator.getInstance();
              tg.transform(filePath + File.separator + fileName, filePath + File.separator + thumbnailFileName, width, height, quality, canvasWidth, canvasHeight, canvasColor, alignment, valignment);
              logger.info("transform done...");
            }
           
            assetUrl = CmsPropertyHandler.getWebServerAddress() + "/" + CmsPropertyHandler.getDigitalAssetBaseUrl() + "/" + folderName + "/" + thumbnailFileName;
            logger.info("assetUrl:" + assetUrl);
View Full Code Here

          {
            if(!thumbnailFile.exists() && originalFile.exists())
            {
              logger.info("transforming...");
              //ThumbnailGenerator tg = new ThumbnailGenerator();
              ThumbnailGenerator tg = ThumbnailGenerator.getInstance();
              tg.transform(filePath + File.separator + fileName, filePath + File.separator + thumbnailFileName, width, height, quality, canvasWidth, canvasHeight, canvasColor, alignment, valignment);
              logger.info("transform done...");
            }
           
            assetUrl = CmsPropertyHandler.getWebServerAddress() + "/" + CmsPropertyHandler.getDigitalAssetBaseUrl() + "/" + folderName + "/" + thumbnailFileName;
            logger.info("assetUrl:" + assetUrl);
View Full Code Here

            //String thumbnailFileName = "thumbnail_" + fileName;
            File thumbnailFile = new File(filePath + File.separator + thumbnailFileName);
            if(!thumbnailFile.exists())
            {
              //ThumbnailGenerator tg = new ThumbnailGenerator();
              ThumbnailGenerator tg = ThumbnailGenerator.getInstance();
              tg.transform(filePath + File.separator + fileName, filePath + File.separator + thumbnailFileName, 150, 150, 100);
            }
            assetUrl = CmsPropertyHandler.getWebServerAddress() + "/" + CmsPropertyHandler.getDigitalAssetBaseUrl() + "/" + folderName + "/" + thumbnailFileName;
          }
          else
          {
View Full Code Here

TOP

Related Classes of org.infoglue.cms.util.graphics.ThumbnailGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.