{
File imageFile = new File(filePath + java.io.File.separator + fileName);
if(!imageFile.exists())
{
logger.info("Creating a imagerenderer");
ImageRenderer imageRenderer = new ImageRenderer();
imageRenderer.setCanvasWidth(canvasWidth);
imageRenderer.setCanvasHeight(canvasHeight);
imageRenderer.setTextStartPosX(textStartPosX);
imageRenderer.setTextStartPosY(textStartPosY);
imageRenderer.setTextWidth(textWidth);
imageRenderer.setTextHeight(textHeight);
imageRenderer.setFontName(fontName);
imageRenderer.setFontStyle(fontStyle);
imageRenderer.setFontSize(fontSize);
imageRenderer.setForeGroundColor(foregroundColor);
imageRenderer.setBackgroundColor(backgroundColor);
imageRenderer.setBackgroundImageUrl(backgroundImageUrl);
logger.info("Created imageRenderer and printing to " + filePath + java.io.File.separator + fileName);
imageRenderer.generateGifImageFromText(filePath + java.io.File.separator + fileName, attribute, LanguageDeliveryController.getLanguageDeliveryController().getLanguageVO(getDatabase(), this.languageId).getCharset());
logger.info("Rendered in getContentAttributeAsImageUrl");
}
i++;
filePath = CmsPropertyHandler.getProperty("digitalAssetPath." + i);