public interface ThumbnailService
Service to retrieve thumbnails for different mime types.
| Modifier and Type | Method and Description | 
|---|---|
Thumbnail | 
generateThumbnail(InputStream inputStream,
                 com.google.common.net.MediaType mediaType,
                 int thumbnailMaxHeight,
                 PreviewType previewType,
                 Instant lastModifiedDate)
Generates a thumbnail for the given input stream and  
PreviewType. | 
Thumbnail generateThumbnail(InputStream inputStream, com.google.common.net.MediaType mediaType, int thumbnailMaxHeight, PreviewType previewType, Instant lastModifiedDate)
Generates a thumbnail for the given input stream and PreviewType.
inputStream - the input stream for which the thumbnail is generatedmediaType - the media type of the filethumbnailMaxHeight - the maximum height of the thumbnail. Use 0 if the image should be returned in the original sizepreviewType - the preview type for which the thumbnail is generatedlastModifiedDate - the last modified date.IllegalArgumentException - if preview type is unknownIllegalStateException - if default thumbnail image is not found in classpathCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.