@Service
@Property(name="process.label",
value="Create Web Enabled Image")
public class CreateWebEnabledImageProcess
extends AbstractAssetWorkflowProcess
CreateWebEnabledImageProcess is called in a Workflow Process step. This
Process creates, if possible, a web enabled representation from the Asset.ProcessExample with the following workflow step arguments:
dimension:500:100,
quality:60
The Process create a PNG Image of the size of 500x100 Pixels. The Quality will be set to 60%.
Arguments:
| Prefix | Description | Default | Multiple | Example |
| dimension: | Amount in pixels given in the following format widht:hight. Image will be risized to have at most this dimension, keeping aspect ratio |
1000:1000 | dimension:400:300 | |
| quality: | Quality as percentage from optimal. This depends on the mimetype of the resulting image. For Gifs this reduces the amount of colors, for Jpgs this sets the compression rate, etc. | 60 | quality:90 | |
| skip: | Set the mimetypes of Assets that should not be processed | mulitple | skip:application/pdf, skip:image/tiff | |
| mimetype: | Set the mimetype of the Image to create | image/png | mimetype:image/jpg | |
| keepFormatList: | Commas epareted list of mimetypes that can be taken webinabled image | image/pjpeg, image/jpeg, image/jpg, image/gif, image/png, image/x-png | keepFormatList:image/gif,image/png,image/x-png |
AbstractAssetWorkflowProcess| Modifier and Type | Class and Description |
|---|---|
static class |
CreateWebEnabledImageProcess.Arguments
Enum mixing old and new metadata argument names.
|
static class |
CreateWebEnabledImageProcess.Config
The parsed configuration for this wf process
|
TYPE_JCR_PATH| Constructor and Description |
|---|
CreateWebEnabledImageProcess() |
| Modifier and Type | Method and Description |
|---|---|
void |
createWebEnabledImage(WorkItem workItem,
CreateWebEnabledImageProcess.Config config,
Asset asset,
RenditionMaker renditionMaker) |
void |
execute(WorkItem workItem,
WorkflowSession workflowSession,
MetaDataMap metaData)
Executes a new Java process with the given
and . |
CreateWebEnabledImageProcess.Config |
parseConfig(MetaDataMap metaData) |
public void createWebEnabledImage(WorkItem workItem, CreateWebEnabledImageProcess.Config config, Asset asset, RenditionMaker renditionMaker) throws RepositoryException
RepositoryExceptionpublic void execute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaData) throws WorkflowException
WorkflowProcessWorkItem
and WorkflowSession.workItem - The WorkItem that defines the newly
started JavaProcessNew.workflowSession - The WorkflowSession
that is used for starting the JavaProcess.metaData - Process specific arguments can be passed hereWorkflowException - Thrown in case something goes wrong during execution.public CreateWebEnabledImageProcess.Config parseConfig(MetaDataMap metaData)
Copyright © 2010 - 2023 Adobe. All Rights Reserved