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(org.springframework.core.io.Resource resource,
int maxThumbnailHeight,
Instant lastModifiedDate)
Creates the thumbnail for the given resource and the maximum thumbnail height.
|
accept, toStringpublic Thumbnail createThumbnail(org.springframework.core.io.Resource resource, int maxThumbnailHeight, Instant lastModifiedDate)
ThumbnailPreviewCreates the thumbnail for the given resource and the maximum thumbnail height.
resource - the resource 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 - 2019 edorasware ag. All Rights Reserved.