Class CreateWebEnabledImageProcess

  • All Implemented Interfaces:
    WorkflowProcess

    @Service
    @Property(name="process.label",
              value="Create Web Enabled Image")
    public class CreateWebEnabledImageProcess
    extends AbstractAssetWorkflowProcess
    The CreateWebEnabledImageProcess is called in a Workflow Process step. This Process creates, if possible, a web enabled representation from the Asset.
    The Format of the webenabled image, can be set by arguments to the Process
    Process is memory aware. If the required memory is not available, image creatation is deferred or cancelled if the memory requirement can't be sattisfied within a fixed amount of trails.

    Example 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
    See Also:
    AbstractAssetWorkflowProcess