Interface ImageThumbnailService


public interface ImageThumbnailService
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    org.exoplatform.commons.file.model.FileItem
    getOrCreateThumbnail(org.exoplatform.commons.file.model.FileItem file, Identity identity, int width, int height)
    Retrieves a thumbnail by given width and height or creates a thumbnail image and get it if not exist
  • Method Details

    • getOrCreateThumbnail

      org.exoplatform.commons.file.model.FileItem getOrCreateThumbnail(org.exoplatform.commons.file.model.FileItem file, Identity identity, 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
      identity - User social identity
      width - target thumbnail width
      height - target thumbnail height
      Returns:
      FileItem
      Throws:
      Exception
    • deleteThumbnails

      void deleteThumbnails(Long fileId)