public class CreateThumbnailProcess extends AbstractAssetWorkflowProcess
CreateThumbnailProcess is called in a Workflow process step. This process will create one or more Thumbnails for the
Asset to be procesed. The Thumbnail generation is delegated to the appropriate AssetHandler. The thumbails Dimensions are given as the Workflow
Process argumentsExample with the following Workflow step arguments:
[70:70],
[80:100:true]
The Process creates two PNG images one of the size of 70x70 pixel and one 80x100 where the result is centred
| Modifier and Type | Class and Description |
|---|---|
static class |
CreateThumbnailProcess.Arguments
The available arguments to this process implementation.
|
static class |
CreateThumbnailProcess.Config
The parsed configuration for this wf process
|
TYPE_JCR_PATH| Constructor and Description |
|---|
CreateThumbnailProcess() |
| Modifier and Type | Method and Description |
|---|---|
static RenditionTemplate[] |
createRenditionTemplates(Asset asset,
ThumbnailConfig[] thumbnails,
RenditionMaker renditionMaker) |
void |
createThumbnails(Asset asset,
CreateThumbnailProcess.Config config,
RenditionMaker renditionMaker) |
void |
execute(WorkItem workItem,
WorkflowSession workflowSession,
MetaDataMap metaData) |
CreateThumbnailProcess.Config |
parseConfig(MetaDataMap metaData) |
static ThumbnailConfig |
parseThumbnailArguments(java.lang.String arg) |
static ThumbnailConfig[] |
parseThumbnailArguments(java.lang.String[] args) |
public void execute(WorkItem workItem,
WorkflowSession workflowSession,
MetaDataMap metaData)
throws WorkflowException
WorkflowExceptionpublic void createThumbnails(Asset asset, CreateThumbnailProcess.Config config, RenditionMaker renditionMaker)
public static RenditionTemplate[] createRenditionTemplates(Asset asset, ThumbnailConfig[] thumbnails, RenditionMaker renditionMaker)
public CreateThumbnailProcess.Config parseConfig(MetaDataMap metaData)
public static ThumbnailConfig[] parseThumbnailArguments(java.lang.String[] args)
public static ThumbnailConfig parseThumbnailArguments(java.lang.String arg)
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"