public class ImageThumbnailPreview extends AbstractThumbnailPreview
Thumbnail preview class for the following image MIME types: <ul> <li>image/bmp</li> <li>image/jpeg</li> <li>image/png</li> <li>image/gif</li> </ul> Returns the thumbnail as PNG image.
| Constructor and Description | 
|---|
ImageThumbnailPreview()  | 
| Modifier and Type | Method and Description | 
|---|---|
Thumbnail | 
createThumbnail(InputStream inputStream,
               int maxThumbnailHeight,
               Instant lastModifiedDate)
Creates the thumbnail for the given inputStream and the maximum thumbnail height. 
 | 
accept, toStringpublic Thumbnail createThumbnail(InputStream inputStream, int maxThumbnailHeight, Instant lastModifiedDate)
ThumbnailPreviewCreates the thumbnail for the given inputStream and the maximum thumbnail height.
inputStream - the input stream for which the thumbnail is generatedmaxThumbnailHeight - the maximum height of the thumbnail. 0 if original size should be usedlastModifiedDate - the last modified date of the thumbnailCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.