RenditionMaker service instead@Deprecated public class ThumbnailGenerator extends 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,
BufferedImage image)
Deprecated.
since 6.0, use
RenditionMaker service instead |
| Modifier and Type | Method and Description |
|---|---|
void |
generate(Collection<ThumbnailConfig> configs)
Deprecated.
since 6.0, use
RenditionMaker service instead |
static Collection<ThumbnailConfig> |
getConfigs(Collection<Integer[]> dimensions)
Deprecated.
since 6.0, avoid thumbnail configuration in workflow processes, and use
RenditionMaker service |
static ThumbnailConfig |
parseConfig(String str)
Deprecated.
since 6.0, avoid thumbnail configuration in workflow processes, and use
RenditionMaker service |
static Collection<ThumbnailConfig> |
parseConfig(String[] args)
Deprecated.
since 6.0, avoid thumbnail configuration in workflow processes, and use
RenditionMaker service |
@Deprecated public ThumbnailGenerator(Asset asset, 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(Collection<ThumbnailConfig> configs) throws 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.IOException - If an error occurred processing the image.javax.jcr.RepositoryException - in case the thumbnails cannot be persistedRepositoryException@Deprecated public static Collection<ThumbnailConfig> parseConfig(String[] args)
RenditionMaker serviceargs - The configuration strings.ThumbnailConfigs.@Deprecated public static ThumbnailConfig parseConfig(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 Collection<ThumbnailConfig> getConfigs(Collection<Integer[]> dimensions)
RenditionMaker servicedimensions - The dimensions."Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"