Interface ImageThumbnailService


public interface ImageThumbnailService
  • Method Details

    • getOrCreateThumbnail

      FileItem getOrCreateThumbnail(FileItem file, int width, int height) throws Exception
      Retrieves a thumbnail by given width and height or creates a thumbnail image and get it if not exist
      Parameters:
      file - Image file
      width - target thumbnail width
      height - target thumbnail height
      Returns:
      FileItem
      Throws:
      Exception
    • getOrCreateThumbnail

      FileItem getOrCreateThumbnail(ImageResizeService resizeSupplier, FileItem file, int width, int height) throws Exception
      Retrieves a thumbnail by given width and height or creates a thumbnail image and get it if not exist
      Parameters:
      resizeSupplier - if resizeSupplier is null then use ImageResizeService
      file - Image file
      width - target thumbnail width
      height - target thumbnail height
      Returns:
      FileItem
      Throws:
      Exception
    • deleteThumbnails

      void deleteThumbnails(Long fileId)