RenditionMaker service instead@Deprecated
public class ThumbnailCreator
extends java.lang.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(java.awt.image.BufferedImage image,
Node renditionsFolder,
java.util.List<ThumbnailCreator.ThumbnailConfig> thumbnailConfigurations)
Deprecated.
This method creates all "needed" thumbnails.
|
Layer |
creatThumbnail(java.awt.image.BufferedImage image,
int maxWidth,
int maxHeight,
java.lang.String extension,
boolean doCenter)
Deprecated.
A thumbnail with the given
maxWith and maxHeight
is generated out if the image source. |
public void createThumbnails(java.awt.image.BufferedImage image,
Node renditionsFolder,
java.util.List<ThumbnailCreator.ThumbnailConfig> thumbnailConfigurations)
throws java.io.IOException,
RepositoryException
image - picture file to create thumbnails fromrenditionsFolder - asset renditions folder nodethumbnailConfigurations - java.io.IOExceptionjavax.jcr.RepositoryExceptionRepositoryExceptionpublic Layer creatThumbnail(java.awt.image.BufferedImage image, int maxWidth, int maxHeight, java.lang.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 © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"