public class DefaultImageGenerator extends ImageOperationChain<ParameterProvider<javax.jcr.Node>>
ImageGenerator
with some provided defaults.
The OutputFormat
and ImageOperation
s can
easily be overwritten by configuration in JCR.
This ImageGenerator
will expect workspace name and path of a Node
,
e.g. /.imaging/default/contacts/ldavinci/photo.jpeg
where default
specifies the
name of this ImageGenerator
, contacts
is the workspace name and
/ldavinci/photo
is the path to the binary Node
.
Modifier and Type | Field and Description |
---|---|
static String |
GENERATOR_NAME |
Constructor and Description |
---|
DefaultImageGenerator() |
Modifier and Type | Method and Description |
---|---|
OutputFormat |
getOutputFormat(ParameterProvider<javax.jcr.Node> params)
Returns the static output format as configured with c2b by delegating to
ImageOperationChain.getOutputFormat() . |
addOperation, apply, generate, getName, getOperations, getOutputFormat, getParameterProviderFactory, setName, setOperations, setOutputFormat, setParameterProviderFactory
public static final String GENERATOR_NAME
public OutputFormat getOutputFormat(ParameterProvider<javax.jcr.Node> params)
ImageOperationChain
ImageOperationChain.getOutputFormat()
.getOutputFormat
in interface ImageGenerator<ParameterProvider<javax.jcr.Node>>
getOutputFormat
in class ImageOperationChain<ParameterProvider<javax.jcr.Node>>
Copyright © 2016 Magnolia International Ltd.. All rights reserved.