Interface ThumbnailGenerator
@Role
public interface ThumbnailGenerator
Handles the thumbnail generation for a specific file type.
- Since:
- 1.29.0
- Version:
- $Id$
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongenerateThumbnail(org.xwiki.model.reference.AttachmentReference attachmentReference) Generate the thumbnail for the givenAttachmentReference.
-
Field Details
-
JPG
JPG file type.- See Also:
-
-
Method Details
-
generateThumbnail
String generateThumbnail(org.xwiki.model.reference.AttachmentReference attachmentReference) throws Exception Generate the thumbnail for the givenAttachmentReference.- Parameters:
attachmentReference- the reference of the file for which a thumbnail is requested- Returns:
- the Url to the generated temporary attachment thumbnail
- Throws:
Exception- if an error occurs during generation
-