Class ThemeImageProcessor

java.lang.Object
se.datadosen.jalbum.ThemeImageProcessor

public class ThemeImageProcessor extends Object
Default implementation of theme image generation
Since:
15
  • Field Details

  • Constructor Details

    • ThemeImageProcessor

      public ThemeImageProcessor()
  • Method Details

    • setEngine

      public void setEngine(AlbumBean engine)
    • getThemePath

      public String getThemePath(AlbumObject folder)
      Returns:
      Path to generated theme image file, relative to current output directory (not URL encoded) or null if no theme image present
    • getFinalThemeImageDim

      public Dimension getFinalThemeImageDim(AlbumObject folder)
      Calculate the width and height of the to-be-generated theme image file or null if no theme image present
      Parameters:
      folder -
      Returns:
    • processThemeImage

      public void processThemeImage(AlbumObject folder, File outputDir) throws IOException
      Creates a theme image for the specified folder. Avoids re-generating theme images unless changes has been made
      Parameters:
      folder -
      outputDir -
      Throws:
      IOException