Interface ImageThumbnailService
public interface ImageThumbnailService
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteThumbnails(Long fileId) org.exoplatform.commons.file.model.FileItemgetOrCreateThumbnail(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 fileidentity- User social identitywidth- target thumbnail widthheight- target thumbnail height- Returns:
FileItem- Throws:
Exception
-
deleteThumbnails
-