@AlfrescoPublicApi public class ImageTransformationOptions extends TransformationOptions
Modifier and Type | Field and Description |
---|---|
static String |
OPT_COMMAND_OPTIONS |
static String |
OPT_IMAGE_AUTO_ORIENTATION |
static String |
OPT_IMAGE_RESIZE_OPTIONS |
OPT_INCLUDE_EMBEDDED, OPT_SOURCE_CONTENT_PROPERTY, OPT_SOURCE_NODEREF, OPT_TARGET_CONTENT_PROPERTY, OPT_TARGET_NODEREF, OPT_USE, relaxedBooleanTypeConverter
Constructor and Description |
---|
ImageTransformationOptions() |
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(TransformationOptions origOptions)
Does the work of copying the given other TransformationOptions
values to this one
|
String |
getCommandOptions()
Get the command string options
|
ImageResizeOptions |
getResizeOptions()
Get the image resize options
|
boolean |
isAutoOrient() |
void |
setAutoOrient(boolean autoOrient) |
void |
setCommandOptions(String commandOptions)
Set the command string options
|
void |
setResizeOptions(ImageResizeOptions resizeOptions)
Set the image resize options
|
Map<String,Object> |
toMap()
Overrides the base class implementation to add our options
|
String |
toString() |
addSourceOptions, clone, deepCopy, equals, getIncludeEmbedded, getLimits, getMaxPages, getMaxSourceSizeKBytes, getPageLimit, getReadLimitKBytes, getReadLimitTimeMs, getSourceContentProperty, getSourceNodeRef, getSourceOptions, getSourceOptionsList, getSourceOptionsMap, getTargetContentProperty, getTargetNodeRef, getTimeoutMs, getUse, hashCode, set, setIncludeEmbedded, setLimits, setMaxPages, setMaxSourceSizeKBytes, setPageLimit, setReadLimitKBytes, setReadLimitTimeMs, setSourceContentProperty, setSourceNodeRef, setSourceOptionsList, setTargetContentProperty, setTargetNodeRef, setTimeoutMs, setUse, toString
public static final String OPT_COMMAND_OPTIONS
public static final String OPT_IMAGE_RESIZE_OPTIONS
public static final String OPT_IMAGE_AUTO_ORIENTATION
public void setCommandOptions(String commandOptions)
commandOptions
- the command string optionspublic String getCommandOptions()
public void setResizeOptions(ImageResizeOptions resizeOptions)
resizeOptions
- image resize optionspublic ImageResizeOptions getResizeOptions()
public String toString()
toString
in class TransformationOptions
public Map<String,Object> toMap()
toMap
in class TransformationOptions
public boolean isAutoOrient()
public void setAutoOrient(boolean autoOrient)
autoOrient
- automatically orient (rotate) based on the EXIF "Orientation" datapublic void copyFrom(TransformationOptions origOptions)
TransformationOptions
copyFrom
in class TransformationOptions
origOptions
- the options to copyCopyright © 2005–2017 Alfresco Software. All rights reserved.