RenditionMaker
service instead@Deprecated public class ThumbnailCreator extends Object
ThumbnailCreator
class ...Modifier and Type | Class and Description |
---|---|
class |
ThumbnailCreator.ThumbnailConfig
Deprecated.
|
Constructor and Description |
---|
ThumbnailCreator()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ThumbnailCreator.ThumbnailConfig |
createThumbnailConfig()
Deprecated.
|
void |
createThumbnails(BufferedImage image,
Node renditionsFolder,
List<ThumbnailCreator.ThumbnailConfig> thumbnailConfigurations)
Deprecated.
This method creates all "needed" thumbnails.
|
Layer |
creatThumbnail(BufferedImage image,
int maxWidth,
int maxHeight,
String extension,
boolean doCenter)
Deprecated.
A thumbnail with the given
maxWith and maxHeight
is generated out if the image source. |
public void createThumbnails(BufferedImage image, Node renditionsFolder, List<ThumbnailCreator.ThumbnailConfig> thumbnailConfigurations) throws IOException, RepositoryException
image
- picture file to create thumbnails fromrenditionsFolder
- asset renditions folder nodethumbnailConfigurations
- IOException
javax.jcr.RepositoryException
RepositoryException
public Layer creatThumbnail(BufferedImage image, int maxWidth, int maxHeight, String extension, boolean doCenter)
maxWith
and maxHeight
is generated out if the image
source.image
- image sourcemaxWidth
- max. thumbnail widthmaxHeight
- max. thumbnail heightextension
- file extension of (original asset). only used for the gif use case...//tododoCenter
- true
to center thumbnailpublic ThumbnailCreator.ThumbnailConfig createThumbnailConfig()
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"