Interface ThumbnailGenerator
-
@Role public interface ThumbnailGeneratorHandles the thumbnail generation for a specific file type.- Since:
- 1.29.0
- Version:
- $Id$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgenerateThumbnail(org.xwiki.model.reference.AttachmentReference attachmentReference)Generate the thumbnail for the givenAttachmentReference.
-
-
-
Field Detail
-
JPG
static final String JPG
JPG file type.- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-