Interface ImageThumbnailService
public interface ImageThumbnailService
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteThumbnails(Long fileId) getOrCreateThumbnail(FileItem file, int width, int height) Retrieves a thumbnail by given width and height or creates a thumbnail image and get it if not existgetOrCreateThumbnail(ImageResizeService resizeSupplier, FileItem file, 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
Retrieves a thumbnail by given width and height or creates a thumbnail image and get it if not exist -
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 useImageResizeServicefile- Image filewidth- target thumbnail widthheight- target thumbnail height- Returns:
FileItem- Throws:
Exception
-
deleteThumbnails
-