{
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);