RenditionMaker service instead@Deprecated
public class ThumbnailGenerator
extends java.lang.Object
Asset and its graphical representation in the form of a BufferedImage. Thumbnails are generated based on a collection of ThumbnailConfigs.ThumbnailConfig| Constructor and Description |
|---|
ThumbnailGenerator(Asset asset,
java.awt.image.BufferedImage image)
Deprecated.
since 6.0, use
RenditionMaker service instead |
| Modifier and Type | Method and Description |
|---|---|
void |
generate(java.util.Collection<ThumbnailConfig> configs)
Deprecated.
since 6.0, use
RenditionMaker service instead |
static java.util.Collection<ThumbnailConfig> |
getConfigs(java.util.Collection<java.lang.Integer[]> dimensions)
Deprecated.
since 6.0, avoid thumbnail configuration in workflow processes, and use
RenditionMaker service |
static ThumbnailConfig |
parseConfig(java.lang.String str)
Deprecated.
since 6.0, avoid thumbnail configuration in workflow processes, and use
RenditionMaker service |
static java.util.Collection<ThumbnailConfig> |
parseConfig(java.lang.String[] args)
Deprecated.
since 6.0, avoid thumbnail configuration in workflow processes, and use
RenditionMaker service |
@Deprecated public ThumbnailGenerator(Asset asset, java.awt.image.BufferedImage image)
RenditionMaker service insteadThumbnailGenerator.asset - The Asset for which thumbnails shall be generated.image - The BufferedImage serving as the graphical representation of the asset, from which
thumbnails are generated.@Deprecated public void generate(java.util.Collection<ThumbnailConfig> configs) throws java.io.IOException, RepositoryException
RenditionMaker service insteadconfigs and stores it as Renditions on the asset. Thumbnails are saved in batch mode to the asset.configs - The thumbnail configurations.java.io.IOException - If an error occurred processing the image.javax.jcr.RepositoryException - in case the thumbnails cannot be persistedRepositoryException@Deprecated public static java.util.Collection<ThumbnailConfig> parseConfig(java.lang.String[] args)
RenditionMaker serviceargs - The configuration strings.ThumbnailConfigs.@Deprecated public static ThumbnailConfig parseConfig(java.lang.String str)
RenditionMaker service
[width:height:doCenter]
or
[width:height]
or
width:height:doCenter
or
width:height
The configuration string must at least provide width and height. null is returned if an invalid
configuration string is encountered, namely non-numeric width/height or insufficient arguments.str - The configuration string.null if the configuration string is invalid.@Deprecated public static java.util.Collection<ThumbnailConfig> getConfigs(java.util.Collection<java.lang.Integer[]> dimensions)
RenditionMaker servicedimensions - The dimensions."Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"